document.onkeydown=function(){ var e = window.event||arguments[0]; }