I have a response stimuli which should last 10 seconds to allow for key responses. But once either a left or right key is pressed, a border (red square) should show up at left/right position based on the key press. After .5 seconds of the first key press, this routine should end to proceed to the next one in a loop.
I’ve figured out how to draw the border and let it present for .5 seconds. But the rest of the routine components just stay there until the end of 10 seconds.
I’ve added the following code under the each frame section as the last component but it doesn’t change the experiment:
if len(response.keys)>0: timer = core.CountdownTimer(0.5) while not timer.getTime()>0: continueRoutine=FALSE
(I didn’t click force end of routine on the response component)