Thanks for the advice Ricky, that's the method that I was hoping to use, but it seems that it isn't working for me for this use case. Sorry, I probably should have explained more.
Basically, I am running a program where the user presses down on a button, the program waits for 5 seconds, marks the current time, and then it beeps. After the program beeps, the user is supposed to remove their finger as quickly as possible. When the button is released, the the Sub Button1_Up process subtracts that marked pre-beep time from the current time to find how long of a delay there was between the beep and the release of the button.
It seems to work great under normal use, but I'm running into a problem where - if the user removes their finger early - that Button1_Up process doesn't get triggered until after the reflex-test program has run its course and beeped. So, instead of telling the user that they removed their finger early, it tells them that their delay was only 90 ms or so.
To fix this, I'm hoping to find a way to check if the button is being pressed immediately before the app beeps. Then, if it turns out the button isn't being pressed, the app will report that the user was early, instead of spitting out a time.
Again, sorry for not being clearer, and thank you for your reply!