Prevent pressing enter during search