#If WinActive("ahk_class VanDyke Software - SecureCRT") || WinActive("ahk_class PuTTY")
; KEY MAPS
#IfWinActive
or...
GroupAdd TerminalGroup, ahk_class VanDyke Software - SecureCRT
GroupAdd TerminalGroup, ahk_class PuTTY
#IfWinActive ahk_group TerminalGroup
; KEY MAPS
#IfWinActive