repl.it
Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import turtle
wn = turtle.Screen()
bob = turtle.Turtle()
susie = turtle.Turtle()
def keypressed():
  bob.pencolor('black')
  bob.circle(100)
def newKey():
  bob.pencolor('magenta')
  bob.forward(40)
  bob.left(90)
  bob.forward(70)
  bob.left(90)
  bob.forward(40)
  bob.left(90)
  bob.forward(70)
wn.onkey(keypressed, 'x')
wn.onkey(newKey, ' ')
wn.listen()
wn.mainloop()
result
console
?