Add component unselection behaviour to ESC key