Cyber Invaders: Space Grid · Step 2 of 4

Keyboard Strafe & Plasma Laser Weapon

In Step 2, connect keyboard event listeners to steer your defense ship left and right across the base perimeter, and fire glowing plasma laser bolts toward the sky when pressing Space or W!

What you will learn

Open this interactive lesson · Browse all lessons

In the editor, complete the marked TODOs. Use Stuck on a TODO? to reveal hints or a worked example, then run the lesson checks.