Close search on click/enter