In the grid on clicking "Enter button " i need to move to t

In the grid on clicking "Enter button " i need to move to the next row and on clicking arrow button i need to move left and right How to do it ?



I know we need to to do mygrid.attachEvent(“onKeyPress”,onKeyPressed); but how to replace “down arrow” button (Default way of moving down ) behaviour with Enter key and also Tab button function to be replaced by left and right arrow keys.



Kindly help me out as this is urgent …