Different behaviour between Processing and Arduino Serial Monitor

I did have issues with buttons as well and it only worked here while connected to the Arduino.

I will explore later today…

I am not a CP5 user but may explore this further.

A related post without CP5:

Sometimes it helps to isolate the problem.

:)