Get Input Key Time Down

Something like this looks like it could help you

Releasing the key triggers the print or any other function, and the variable now contains the time, the key has been held down.

EDIT: even nicer: you could enable tick only if key gets pressed, so removing the need for unnecessary ticking and saving the gate node

1 Like