Press any key, and its key code will be shown below:
<body> <script language="javascript"> function kcode(ev) { document.getElementById("kc").innerHTML="" + ev.keyCode + ""; document.getElementById("kc").innerHTML+=String.fromCharCode(ev.keyCode); } </script> <div id="kc">No Key was pressed</div>
List of keycode: