Navigation through inputs using arrow keys

This page demonstrates spreadsheet like navigation via arrow keys. It works by handling onkeydown events and a known input field naming scheme (in this case a1, a2, b3 etc).

Handling Enter, Up and Down keys is easy, but Left and Right keys need to allow for the cursor moving within inputs. In this example, which works for I.E and Gecko...

In this example navigation wraps at edges, this is not neccessary for the technique and is an entirely optional implementation.

 ABCDEF
1
2
3
4
5
6