I have assigned Tab to the left fn thumb key of the left hand.
I have assigned LAlt as secondary to the a key (also left hand).
I would like to tap Alt-Tab (switch windows) quickly with my left hand, so I press a+left fn quickly and release it quickly. Now the same hand detection kicks in and I get the letter a followed by a Tab press.
I'd like to keep same hand detection for general use of the a key to protect me from spurious activations of LAlt during fast typing.
But I want to exclude left fn.
Note: in ZMK and Kanata, I can freely configure which keys trigger immediate ("same hand") resolution to primary. I can even set up different behaviour per key-with-secondary-function.