Arrow keys to move between text_fields?

I’ve just dabbled the tiniest bit in AJAX, but I have an app with a grid
of text_fields (each row of text_fields being a row from the database,
and I would like the user to be able to navigate between fields with the
arrow keys in a spreasheet-like fashion.

Is this reasonably doable?