onkeydown

ドキュメント上で発生するキーダウンイベントハンドラを指定します。要するにキー押下時の処理先(関数名)を指定します。

document.onkeydown = ★
   ★=関数名