Conditional loop problem

OS (e.g. Win10):
PsychoPy version (e.g. 1.84.x):
Standard Standalone? (y/n) If not then what?:yes
What are you trying to achieve?: I am trying to make a flicker paradigm exepriments (two images separated by a mask). The loop of the image-blank-image is supposed to go on until the participant presses the spacebar (and record reaction time). For some reason, no matter what I do the routine doesn’t end with the key being pressed, nor does it go on forever… it just flickers for a few seconds and then proceeds to the next loop.

What did you try to make it work?:
I ticked the ‘force the end of routine’ box, and put spacebar as an allowed key. I haven’t used psychopy before (or program anything really) so I have no idea how to put it in code. Thanks in advance.

You need to show us more detail of how you are trying to implement this (e.g. screenshots of your flow panel and of any relevant component settings).

It’s always a good idea to consider “could a person give useable feedback on this question, knowing nothing other than the information I have provided”?