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.
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)