activates/deactivates modifiers as necessary to get a keycode interpreted as the expected keysym. still some work and testing to do on this.