When the user presses the Left Arrow Key, we want the ball to move left and the value of left_count to go up by 1.

  • Go to and drag out Left Key.
  • Change the command inside the event to move the ball left 10 pixels.
  • Go to and drag Global Variable inside the event. Change the variable to left_count.
  • From , drag Add Value inside the event. Change the variable to left_count.

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)