Basic keyboard functionality for movement of object

I am unable to figure out what is wrong with my code. I have another example I was able to get to work but it didn’t use constructor objects and this one does. That’s about the only different I can …

keyCode and which are deprecated – so why is that not working?

According to MDN Web Docs KeyboardEvent and Google Updates KeyboardEvent key and code are implemented while keyCode and which are deprecated. With that in mind I should be able to dispatch keydown …

How to find the key code for a specific key

What’s the easiest way to find the keycode for a specific key press? Are there any good online tools that just capture any key event and show the code? I want to try and find the key codes for …