I am working on key mapping. The problem is that when I press the TAB button down it navigates to the next input field.
TAB has key of 9 and DO
you can use the event.shiftKey property for that: http://www.java2s.com/Code/JavaScript/Event/Shiftkeypressed.htm
event.shiftKey