I have a question regarding a piece of code like void keypress() {. When a key is pressed, does the program stop what it is doing, and do what is under the keypress function and then go back to where it was? so for example, the program is working on a bunch of math problems cuz that is what is supposed to do, and then a key is pressed. Will the program stop computing, go to the void keypress() function, do that, and then go back to where the program left off in the draw() function?
1