STEP 6: We can move right...but what about left?

  • Click and drag Left Key into the very bottom of your program, BELOW stage.event_key("right",·right_key)
  • Click Run and and use the right and left arrow keys on your keyboard to move the point.

Make sure to add the new event below all code already in the code editor.

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

stage.set_background_color("black") # sprite = codesters.Point(x, y) sprite = codesters.Point(50, 100) sprite.set_color("green") sprite.pen_down() def right_key(): sprite.move_right(20) # add other actions... stage.event_key("right", right_key)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)