Ignore selectionchange when there is pending key action.