stop search when enter leaves