Trying to implement conditional loops / participant toggling between trials

I’m trying to allow participants to toggle between a set of stimuli before selecting an answer to move onto the next set of stimuli.

The stimuli would consist of a set of words on the screen, starting with all words in black.
Ideally, on the neutral (all words in black) screen, they would press the left key to see half of the words on the screen in red (H1 screen) or they would press the right key to see the other half of the words on the screen in red (H2 screen).
I would also want them to be able to return to the neutral screen by pressing on the opposite key (right if they first pressed left, left if they first pressed right on the neutral screen)

I want them to be able to press left and right as many times as they would like before clicking on a word to move on to the next stimuli. I was trying to set up trial loops so that: if press left on the neutral screen (routine), toggle_H1=1; and then there would be a loop to the H1 screen (routine) conditional on toggle_H1==1. However, I am having trouble figuring out the best way to implement what I have described above.

I would advise doing this through Each Frame code rather than having key presses end the routine. The colour of the text could be updated every frame or in code.

I came to the same conclusion, thank you!