Is it possible to use these keyboard event listeners without using an input field, and to call specific functions based on the k
I am trying to make a Tetris game without buttons, just keyboard controls, however, I am having difficulties doing this without an input field like demonstrated here:
Here is my code:
Ignore the comments and code under the body tag.
I appreciate the compliment, however, this is not my code. I am simply trying to make the gameplay faster and more authentic to modern Tetris by using keyboard controls. I can't take credit for someone else's code. That's not right.