пример перехвата кодов клавы

by jt3k

HTML

<style>* {font:200px monospace;text-align:center}</style>
<input size="1" id="la" type="text" onkeydown="getElementById('report').innerHTML = event.keyCode; this.value=''">
<div id="report"></div>