keyCode finder
by Joe Saad
HTML
<h1>
<a href="http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000520.html">KEYCODES REFERENCE</a></h1>
<div>Keycode for <span id="key"></span> pressed is: <span id="pressed"></span></div>
CSS
h1, #key, #pressed {font-size:larger; font-weight:bold;}
JavaScript
$(document).keyup(function(e){
//var charStr = String.fromCharCode(charCode);
$('#key').html(String.fromCharCode(e.keyCode).toLowerCase());
$('#pressed').html(e.keyCode);
// you can also use e.which
});