94da7e1767
We need to look at the focus_in and keymap notify pair to correctly determine the set of held down keys at focus in time, so generalize the handling of event pairs in preparation for that.