added ctrlkey check before searching
corrected jquery selector for closing by escape key