<key event>
document.onkeydown=checkKey;
function checkKey(e){
if(e.keyCode=='37'){ //left Key, 38:up, 39:right, 40:down
alert('left');
}
by yongary