键盘事件有三种按键按下:keydown,用户按下键盘上的键;按键释放:keyup,用户释放按键;点击按键:keypress,用户按下并且释放了按键。
<body onkeypress="keyEvent(event)">
2020-03-17