In my case, iTerm2 can do more sophisticated keyboard remapping than the standard terminal. Specifically: I have Caps Lock globally remapped to Command. Except, in iTerm, it acts as Control. Except, if I'm using some specific combos, like Cmd-Tab or Cmd-`; then it acts as Command again.