if you are on mac please can you try:
Security and privacy ( in mac settings not psychopy) > privacy tab > allow psychopy accessibility and input monitoring
then restart psychopy and try again.
I believe this is a bug in version 2022.1.1 where sometimes error messages do not show (and restarting the program fixes it) but on mac if you are using psychopy the first time you need to enable keyboard access for the application in your mac settings.
Becca