Easiest way to do all this is with a timer event or function you don’t even need to use event tick . When you press the button simply have the timer add 1 to a variable eg fingerHold duration . Then check if fingerHoldDuration > desired held time if true continue with logic. Then from released simply clear timer , reset the variable back to 0 . One thing you need a do once before the event timer otherwise the loop of the event will fail to execute as it will keep trying to call the event but never actually execute the logic . This had me stuck for ages .