Help - want to hold a key to trigger an action, but keep that key's original functionality on single press

I want to set a key to trigger an action by holding it for half a second, but the problem is that this disables the key altogether when trying to type.

I’m trying to set it up so that the key works normally upon a single press, but after half a second of holding it, the trigger kicks in.

Anyone know how to do this?

This should do what you want. Example with the letter A.

A --> press briefly to type “a”
A --> press and hold to display a HUD.

A = A.bttpreset (1.1 KB)

A = something else.bttpreset (814 Bytes)

The biggest problem is that keys are typed on key-down on standard systems (for good reason). Thus any long hold will not be able to keep the "original" functionality - it will always be slightly different. (Unless you are fine with the long press also triggering the key's original functionality in addition to the long press functionality, then you can use key seqences)

That worked! Thank you!!

Actually another user did manage to solve it but than you anyway!

yes Frank's approach is the best, just keep in mind it is not the same as if you'd press that key without modification.