-
Notifications
You must be signed in to change notification settings - Fork 83
keyPressed
stevepaget edited this page Feb 16, 2016
·
1 revision
keyPressed(key)
Where:
key is a string containing the name of a key (see key names). Alternatively, this can be left out and it will check any key.
'Note:' Returns True if the key is pressed at the time the function is called. False otherwise.
eg.
if keyPressed("Space"): #jump, or something cool!