How can I add random key pressed with turtle (that means that I don't want this:scr.onkey(fun,'r')?
I tried this...
import turtle as system
scr=system.Screen()
def p():
print('button pressed')
scr.onkey(p,any)
...but this does not work. How can I fix this? Thanks for any help!