I just ran into the same error. I noticed that in Experiment Settings > Input, the Keyboard Backend was set to ioHub. Changing this to PsychToolbox seemed to fix this issue for me. (This happened when I was creating brand new experiment, so I don’t know how changing this will affect your existing experiment)