The proposed fix from Bug 3599312, which should make key map handling interact
better with input methods. Note that this does not work on OSX (in X11 mode)
because that handles the Alt key in its own special way.
[Bug 3599312]: Apply fix for Alt key problems.
[Bug 3599312]: Apply fix for Alt key problems.