Clear the key buffer when the editor pane is toggled on