Why iterm2 keyboard shortcut settings don't work on window launched using F12
On the Preferences Window of iTerm choose keys and below on the left side you see the Hotkey Configuration. Choose your profile from the option Hotkey toggles a dedicated window with profile. And this should work.