Hi,
Maybe using keyPressed and keyReleased to change a boolean state will help.
Here is the link to the key functions of processing (https://processing.org/reference/keyTyped_.html)
Hope it helps 
Hi,
Maybe using keyPressed and keyReleased to change a boolean state will help.
Here is the link to the key functions of processing (https://processing.org/reference/keyTyped_.html)
Hope it helps 