Escape key cancels properly