rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Keyboard Input</title> <script type="text/javascript"> document.onkeypress = function(e) { var evt = e ? e : window.event; var key = evt.charCode ? evt.charCode : evt.keyCode; var key_str = String.fromCharCode(key); var v = []; for (i in e) v.push(i+" -> "+e[i]); document.getElementById("output").innerHTML = "<b>"+key_str+"</b><br />"+v.join("<br />"); } </script> </head><body> <div id="output"> </div></body></html>