So basically, you want Sonar to sense when a VST GUI is open, and if it's open, then all keystrokes go to the VST? And if no VST GUI is open, then the keystrokes work normally?
(BTW "E" doesn't disable the ProChannel, it just bypasses all effects. If you type "E" again, all the effects come back.)