Map keydown and keyup to different things

Hi there, I’m trying to figure out how to do a particular kind of key mapping with the UHK Agent. I want one of my keys to press a key combo once when initially pressed (keydown) and then press the same key combo when released (keyup), without any repeating while held.

Is this possible? The key remap control’s Keypress tab doesn’t give options for up/down, and the smart macro editor doesn’t have any info about this either. I know I could bind the key to like F13 and use AutoHotkey to get the actual behavior I want, but I want this keyboard to work the same on all operating systems, as I have to switch between operating systems pretty frequently for my work.

If it helps, what I’m really trying to do is make a global “push to talk” key for Zoom. It has a built-in spacebar PTT key, but that only works when Zoom is in focus. But it also has a global mute/unmute key combo. I’m just not used to using a key like that, which needs to be pressed twice. But I realized I could, in theory, bind keyup and keydown to the mute/unmute key, and it would behave just like a PTT key. So that’s what I’m trying to do for the moment, but if you have any other ideas for achieving something similar, I’m open to suggestions.


Yes, via macros:

tapKey a 
tapKey b

Or tapKeySeq instead of tapKey if you need more complex key combos… More info at and