Possible Duplicate:
Simulate left and right arrow key event with javascript
I want that when I click on a button a keycode is issued. For example there's a button somewhere on a webpage. When you click on this button, the keycode j is issued (Or maybe a shortcut cmd+j). How can I do this?