Key pressed variable

please use keyPressed as a function
https://www.processing.org/reference/keyPressed_.html
and

https://www.processing.org/reference/keyReleased_.html

1 Like