After looking at your experiment, try giving this a look.
As at some point some things from python didn’t always translate properly to java. I am not sure how that has changed in the more recent version of psychopy, but one of the “cheatsheet” versions you can see certain problems occur due to key responses on page 12:
Try some those fixes and maybe those problems will resolve?
Issac