Difference in onset times between sound stimuli and keyboard response

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10):
PsychoPy version (2022.2.5):
Standard Standalone? (y/n) y
What are you trying to achieve?:
I have an experiment with a sound component and immediately after, a keyboard response. The data that I need is the response time to the sound component, which I obrain from the response time to the keyboard. The problem is that the time of the beginning of the sound component and keyboard responce are not exactly the same, and the existing difference is inconsistent. The difference is in miliseconds, but since this is the resolution I need for my experiment, it’s a problem.
example of the beginning of sound (right) and keyboard (left):


My solution for right now is to calculate the difference and substitute it from the response time. Is there a better solution for this? Maybe a way to acquire the response time from the beginning of the sound component and not the kyboard response?
Thank you in advance.