Record the key press duration (time between space press and space release)


I would need some help to record the time between the moment the space bar is pressed and the moment it is released. Participants are required to keep their finger on the space bar before responding, and I would like to measure this duration.


In Builder you can have one routine that ends on a key press and the next one that ends on a key release.

Thanks, and do you know how implement it with a code?

There are a few possible solutions.