Keyboard Controls
Now the player takes over. Listen for arrow keys, move a square, and you have the core of every arcade game ever made.
What you'll learn
Read keyboard input and move something with it.
New command
window.addEventListener('keydown', e => โฆ)๐ป Code Editorhtml
๐ฌ
Press Run Code to see your creation!