I created a keyPressed function. If I place it in the primary tab of the sketch, it works fine. If I place it in a secondary tab (cvplib.py) and import that into the primary tab (import cvplib), it doesn’t work.
I have another function in cvplib.py, which does work. There’s something about the Processing provided keyPressed() function that appears to be the problem.
Any help would be greatly appreciated.