Keyboard response time

Hello, I was wondering how could I set up the routine to record the keyboard response time after the end of the audio materials. We wanna play the audio first and record the keyboard response time at the end of it. However, we got 200 items in total, and the lengths of the audio materials are different. Is there any possibilities for us to set the loop in PsychoPy?

Response times are relative to the start of the routine, so to get keyboard response times relative to the end of the audio stimulus you need to put the keyboard component in the routine after the routine with the audio component in. If the loop contains both of these routines, then it will run the response routine before moving on to the next iteration of the loop.