Add support for keyboard modifiers on x11.