Added escape key to cancel