Press and hold keystroke

Karabiner is perfect for you use case. Define a key combo in Karabiner and map this to your KM macro.