psychopy.org | Reference | Downloads | Github

Error message "Unable to get property 'getKeys' of undefined or null reference"

Hi, I’ve programmed an experiment which runs fine offline, but when running it on Pavlovia I get an error message for a keyboard response (see picture). The participant has to input a letter to indicate their sex (m, f or p). This works fine offline, but on Pavlovia I get an error message that says: "Unable to get property ‘getKeys’ of undefined or null reference.

I don’t understand why it won’t work. Any ideas? Thanks!!!

You need to put event=psychoJS.eventManager; in a JavaScript code block at the start of your experiment.

Best wishes,

Wakefield