[Bug 201665] Incorrect state in X11 keyboard events