How to determine which key is pressed in javascript?
in the function which takes the key event:
function(e){ var key = String.fromCharCode(e.keyCode); }