So in DOTA 2 I would like to use space bar a key modifier, like ALT does. so I remapped the ALT key to Space Bar and vice versa using AutoHotkey. The problem is, when I am chatting to my team mates, I have to use the ALT key as a space. Is there a way to make it so that I could use say Num1 and Num2 (any key is fine, I have rebindable keys on my keyboard), to switch between the remapped version of my keys and the original usage of the keys, like a profile system?
Edit: Changed wording for clarification.