change F1 to close into escape