Self-paced reading task restart loop button

Hi all,

I am new at Psychopy, and am producing a self-paced reading task with phrases of a sentence on different screens, presented sequentially and in separation (one-by-one) through a ‘space’ button press. I have already finished my code for that with success, by the help of previous posts. However, I would like to add an option for my participants throughout the sentence trials that whenever they have missed the previous phrases/words, they can restart the same trial and rerun the original trial again using a button press. I am wondering if there is any code component available to restart the same loop within a trial upon button press?

Thanks a lot!