document.onkeyup = function(event){
  var event = event || window.event;
  alert(event.keyCode);
}

相关文章: