STEP 12: We want the spaceship to be able to move in any direction.

  • From , drag Down Key, Left Key, and Right Key into your program.
  • Change the name in front of the commands inside each event to spaceship.
  • Click Run and press the arrow keys to test your program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)