Oh! That can be fixed with changing line 7 to this

Code: javascript
if (document.layers || e.which) { pressedKey = e.which; }