onkeypress

ドキュメント上で発生するキープレスイベントを指定します。要するにキーを押しっぱなしにした時の処理先(関数名)を指定します。

document.onkeydown = ★
   ★=関数名