Allowed Key Function Not Working

Hi all,

When I use the allowed keys function on the keyboard component it freezes on the screen and pressing any key will not allow it to continue to the next routine (I have force end of routine checked, so pressing the key should move it to the next). However, when I allow all keys it works and lets any key press move to the next routine.

Please let me know if you had encountered something similar. My goal here is to only allow a press from the ‘5’ key for the MRI trigger.

PsychoPy version 2024.1.

What did you try to make it work?:

Link to the most relevant existing thread you have found: Key response not recognizing allowed keys

I tried the method suggested here to change the version and keyboard input but both did not work.

Please try '5','num_5' in case the version you’re using is the one with a bug about single allowed keys in keyboard components.

Thank you so much for the quick reply! I just tried this and on the first go it worked, but when I tried after that it still freezes, not sure what is going on!

Is this local or online?

Local!

Are you using a Mac?

Are you able to upgrade to a more recent version of PsychoPy?

I am using a Mac, and I’ll try to update to the latest version and see if this helps!

Hi @wakecarter thanks so much for all your help! I realized that I actually needed to work in the 2023 1.3 version as that is the one we have running for our EEG setups so I remade my program in this old version and it works now!