strip non-modifier masks from the keyboard state for keyreleases when xkb is present too