Knowledge Base‎ > ‎Programming‎ > ‎Python‎ > ‎Python Reference‎ > ‎Python Reference‎ > ‎

keyboard

Keyboard

ProcessingpyprocessingDescription
keykey.charholds the char value of the most recently pressed key
keyCodekey.codeholds an int code of the most recently pressed key
keyPressed()keyPressed()called when a key is pressed
keyPressedkey.pressed()tells whether a key is pressed
keyReleased()keyReleased()called when a key is released
keyTyped()keyTyped()called when a non-code key is pressed
Comments