'Allowed responses' aren't registering in key response
Hi,
I'm building an experiment that collects inputs from the keyboard. In the key_response item, I've set the 'allowed responses' to the keys that I want OpenSesame to recognize, but when I run the experiment, it seems to recognize all keys. I'm not sure what's going on. Does anyone have any suggestions that I could look into?
Many thanks.
Comments
Hi @pnsilva,
There must be something wrong in the way you set it up, but I'd need a little more information to pinpoint the issue. Here are some things you could check:
(1) are you separating the possible keys with ";" in the list of allowed responses?
(2) are you defining uppercase or lowercase responses? If you define the responses say, as "z;m" and your keyboard has caps lock on, what the subject is responding would be "Z" or "M" and so it would not match. Or vice versa is you defined the allowed responses as "Z;M".
(3) are your allowed responses numerical keys? Pressing the "2" key at the top of your keyboard is not the same event as pressing the "2" key on the numerical pad. (in the first case, OS would register "2" and in the second, it would register "kb2").
My advice: allow all responses for now and add some code in your task (Python or Javascript) to output the subject's response to the console. That way, as you develop your task, you'll be able to see exactly what is being registered as a response.
Hope this helps.
Fabrice.