I'm with @SteveB: e-reading the OP, it says "hold a maintained pushbutton" and "until the pushbutton is depressed."
I find this confusing: a maintained pushbutton (PB) changes (toggles) it's output each time it is actuated. However, the term "hold" suggests a momentary pushbutton.
I assume "hold" means "hold in," and holding a maintained PB is redundant because its output state has already changed and will not change again until the PB is released and actuated again; so hold should only refer to a momentary PB.
The term "is depressed" is also confusing, as in "repeat until the pushbutton is depressed:": if the button is being held (in), then it is already depressed, so how can it be depressed again?
Which is it?
Anyway, whichever way it is, @GaryS and @parky provided the answer: whenever the repeat is supposed to be running, use one-shot a.k.a. pulse logic.