As you only use Enter key for chatting in coh2, you can bind it so that it changes some variable, or scroll lock flag for better control, and disabling all the bindings when writing. That way you can write normally in chat and yet use all of the keys needed for writing for your hotkey bindings.
Examples of that are in my posts in this thread:
https://www.coh2.org/topic/81083/help-with-auto-hotkey
I wish i could do that with my Keyboard driver Kappa