While doing selenium, how to do enter key action, on a search bar which has no search button

I’ve been trying to test an ecommerce site after I close the initial popup no elements is captured by

bd.findElement(By.xpath("/html/body/div[5]/div[2]/div[1]/div[4]/div[3]/div/span")).click();

So, I have been using

JavascriptExecutor js = (JavascriptExecutor)bd;
js.executeScript("arguments[0].click();", element);

And after a while I got stuck at a place where I have to do the enter key action. I have been trying various keys for this and none of them seems to work. So, I either need a code for using the enter button event on the search bar using JavascriptExecutor or a solution where I can fetch elements using findElement.