Sync events in xkeyboardcontrol after every key event to try to make sure events don't go out of order.