Return a keycode when a button is clicked
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5516600/simulate-left-and-right-arrow-key-event-with-javascript">Simulate left and right arrow key event with javascript</a>  </p>
</blockquote>



<p>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 <kbd>j</kbd> is issued (Or maybe a shortcut <kbd>cmd+j</kbd>). 
How can I do this?</p>
