<div class="jb51code"> <pre class="brush:js;"> document.onkeyup = function(event){ var event = event || window.event; alert(event.keyCode); }</pre> </div>