I want to program a turtle to move on every second, based on the user pressing the arrow keys.
How do I pause the turtle movement while still listening for key presses?
If I use sleep()
, the whole program pauses and it no longer listens for key presses.