Problem with Online Experiment(allowed keys)

Hello everyone, I have some issues with my online experiment that I don’t know how to solve. My experiment program runs fine locally without any errors. I also successfully converted it into an online experiment, but unfortunately, when I open it, I find that the ‘allowed keys’ no longer exist. That is, originally only the spacebar could be clicked to proceed to the next routine, but now any key can do that. I don’t know how to solve this problem. Can anyone help me?

Hi,

What version of PsychoPy are you using?

What does your keyboard component look like?

hi, it’s 2025.1.1. And the keyboard component is like:

Hello @ino

I think this error was fixed in 2025.2.0 (BF: Handle when allowedKeys is just 1 multi-character string (e.g. "return") online by TEParsons · Pull Request #7268 · psychopy/psychopy · GitHub and here Handle when allowedKeys is just 1 multi-character string (e.g. “return”) online by @TEParsons in #7268. If you don’t want to upgrade, simply specify ‘space’ twice.

Best wishes Jens

1 Like

TK Jens, but it doesn’t work and comes an error ‘space is not defined’…even I changed it back to ‘space’…I just want to know if I upgrade, do I need to do everything again from the beginning?

testone.psyexp (136.8 KB) This is my program, and I really don’t know where the problem is.

guys, it has been solved (though..idk how …

Hello @ino

You final-routine will never end. You ask your participants to end the routine by pressing “space”. However, there is no keyboard-component.

This did not work?

Best wishes Jens

hi Jens, i have solved the problem though idk how i solved, but when i create a new project and sync it, there’s no problem. tk again~