Add ESC function to cancel selecting an area.