psychopy.org | Reference | Downloads | Github

Setting a variable key press

OS : macOS High Sierra
PsychoPy version 3.2.4
**Standard Standalone? y
**What are you trying to achieve?: Set different allowed keyboard responses for different frames.

What did you try to make it work?:
I put this in builder to draw from my excel file:

What specifically went wrong when you tried that?:
Instead of pulling the Key_Press variable from my excel file, it seems to always allow the default key presses (‘y’, ‘n’, ‘space’, etc…). My excel file specifies ‘1’,‘2’ but nothing happens when those buttons are pressed during the task.

What about $eval(Key_Press) ?