How to set routine for reaction time -

OS (e.g. Win10): Win10 and MacOS Sonoma 14.5
PsychoPy version (e.g. 1.84.x): 2024.1.1
**Standard Standalone? Y If not then what?:
What are you trying to achieve?: I am trying to run a synchronization experiment where the participant has to tap the spacebar to tap along to the notes that are playing.

What did you try to make it work?: The routine works in general, I’ll attach a screenshot of what the routine looks like.

What specifically went wrong when you tried that?:
Nothing specifically wrong – I just need to know if there’s a way to start logging the reaction time in time with when the sound stimulus actually plays, not when the window flips. The sound stimulus plays at 5 seconds. Would it be possible to set a code component such that if a tap is played on the first second of the sound stimulus, the reaction time logs as 1.0s rather than 6.0s?