Co-routine question
I am currently utilizing a co-routine to present a randomly selected image with 1 of 3 randomly selected audio clip. I get that the co-routine function dictates the timing of each paired stimuli presentation. The issue I am running into is that when I make a response, either the image and audio keep playing in the background or the audio keeps playing into the next trial. My question is, how do I get the trial (paired image and sound) to end when a key is pressed? Thanks!