Make the search depend on 'Enter' event