Tap for one key, hold for another
Dual Function Keys is a plugin for interception-tools that allows one to send arbitrary keycodes when a given key is tapped or held.
interception-tools