That really depends.
Do you want the Mapped Keys in the Key Map to execute when you press the hotkey for them, regardless of what the target is. i.e. when the current window is active, then all the mapped keys with hotkeys DO NOT WORK FOR ANYBODY? If so, then use a
Key Map State Action.
If this Key Map is part of a virtualized configuration and will be executing simultaneously on all toons, and you don't want the current toon to do anything, then, also use a
Key Map State Action (although for most virtualization setups, this is overkill and you usually want to disable specific mapped keys via
Mapped Key State Actions.
If you still want the mapped keys to execute for the other toons, then we are really talking about Mapped Keys, and not Key Maps.
So, lets talk about Mapped Keys instead.
Do you want the Mapped Key to still fire for the other windows when you have disabled it on the current window? If so, then you don't really want to disable the mapped key on the current window, as that will prevent the HotKey from firing. What you are really trying to do is change the
TARGET of the mapped key so it excludes the current window. Now, how to do that, depends on something else. Is this temporary or always. If the former, then you need an
Action Target Group, and you add/remove members to the group using
Target Group Actions. If the latter, then it is easier, just take the existing
Target and append a "&~self" to it.