ho provato a mettere in pratica però...

se faccio per esempio un alert che mi restituisce event.keycode
mi restituisce undefined....

Perchè?