I'm trying to trigger key events in the Chrome console but nothing seems to work.
I want to trigger any of the arrow keys programmatically (for an experiment).
I've tried this (among many other things)
window.dispatchEvent(new Event('keypress', {keyCode: 39}))
The game code is pretty short.
Any suggestions?