โ† Ages 12+/Keyboard Controls
๐Ÿ“– Story

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!

โฎ Previous lesson