Disable KeyBindingManager on right Alt keydown.

This fixes issue #8666.
Comment on line 136 is not exactly correct. When AltGr key is down, all key events have e.ctrlKey true until it is released. 

Not sure what is not working for you. Can you provide more details if it is still not working with a layout that has AltGr shortcuts?