Press and hold button for "n" seconds

Greetings! I would like to know how to create “Press and hold button for “n” second” scheme in different ways.
I use timer for this, but could you tell me please is there any other way to do this operation except using timer. Timers work well, I just want to get more knowledge.
Thank you!

1 Like

If you attach the Get Input Key Time Down node, the key is what you’re getting the event from. The return value is 0 if the key is up or the time held otherwise