Here's another. The main benefit is that actions trigger as soon as a long press is detected, rather than having to wait until after the trigger is released.
Uses the subroutine found under Hotkeys & USB Device Keys at the top of this post:
For more information, see the wiki Searching the Forum for Answers section.