Here's the script I use. Just replace "½" with whatever key you want. This will work with COH1 and COH2. Or, at least, it's worked for me on 3 different PCs. Remember to make sure the file extension is .ahk
Code
#IfWinActive, Company Of Heroes
½::Numpad0
return