Cancel the text when pressing escape