Questi i codici
UP = 38
DOWN = 40
LEFT = 37
RIGHT = 39
Se vuoi intercettare UP scrivi questo
if (event.keyCode == 38) alert("UP");
e tanti "else if" per quanti tasti vuoi intercettare
Questi i codici
UP = 38
DOWN = 40
LEFT = 37
RIGHT = 39
Se vuoi intercettare UP scrivi questo
if (event.keyCode == 38) alert("UP");
e tanti "else if" per quanti tasti vuoi intercettare