Holding space bar as key response
I'm trying to program with "in line_script" a visual imagery experiment where participants must respond by holding down the space bar and releasing it only when they feel they accomplished the task. While they are holding the space bar, some stimuli will be displayed on the screen. I would need to register the exact time when the space bar began to be pressed, when it was released, and what was on the screen at the moment
Do you guys know a code line to do that? In the image below you can see what I've done so far. Thanks in advance for any help.