Added notify on escape key, removed hardcoded exit