Reference / Processing
The system variable that always contains the value of the most recent key on the keyboard that was used (either pressed or released) keyCode. Used to detect special keys such as the UP, DOWN, LEFT, RIGHT arrow keys and ALT, CONTROL, SHIFT. keyPressed () Called once every time a key is pressed. keyPressed.