Hi there,
Please can you share the line where you define:
A link that might be helpful is this one Measuring key lift time relative to stimulus onset (I was trying to achieve a similar thing!)
Essentially what you want to do is retrieve the ‘duration’ attribute of your keypresses - which should tell you if anything was released prematurely!
Hope this helps,
Becca