How to use psychopy create interruption task

Locally you could try this new feature.

Online you might need to have a loop within the main loop so the trial can be repeated, or a second copy of the trial routine which gets skipped when there is no interruption.