JavaScript

onKeyPress

 キーが押されている間処理を実行する。

document.onkeypress = myFunc;

 キーが押されている間関数 myFunc() を実行。