Made sure 'event' was passed through with the function on keydown
Whitespace in index.html