En el botón Presione Presione
<input onkeyup="if(event.keyCode===13){submit.click()}"><button id="submit">submit</button>
FrostyAnimations126
<input onkeyup="if(event.keyCode===13){submit.click()}"><button id="submit">submit</button>
const textbox = document.getElementById("txtSearch");
textbox.addEventListener("keypress", function onEvent(event) {
if (event.key === "Enter") {
document.getElementById("btnSearch").click();
}
});