My code keeps returning an error that says "e is undefined" whenever I run it?
10:28 30 Mar 2026

I'm trying to make a graphics test using tables as individual pixels, where you can move around using WASD, with the player character being the "@" symbol.

I'm using this code:



  
    
    
    array test
    
  
  
    
    

But it keeps returning this exact error:

array.html:57 Uncaught ReferenceError: e is not defined
    at array.html:57:16

I don't really know why the error is happening, so I don't really need the code to be rewritten for me (although that would be nice), since I'm trying to learn how to deal with key inputs in Javascript!

javascript html jquery keyboard jquery-events