Debug a reaction timer
Handle early and repeated presses explicitly.
Build or compare
Give the timer waiting, ready and finished states. Only score a button press in the ready state.
Test the result
Try pressing before the signal and twice after it. Only the first valid press should count.