keyPressed
Description
The keyPressed function is called once every time a key is pressed. The keyCode for the key that was pressed is stored in the keyCode variable.
Syntax
keyPressed()
The keyPressed function is called once every time a key is pressed. The keyCode for the key that was pressed is stored in the keyCode variable.
keyPressed()