Topic: Implementing the functionality of tab key through programming

We are trying to create a web page in ROR wherein we require the various text fields to be selected or highlighted one after the other automatically....similar to the way it would be done using a TAB key... Our main aim is to not use a mouse.
have no clue how to start with it.....Any sort of help would be appreciated..
Thnks in advance !!!!! smile