document.getElementById("disable_enter").addEventListener("keydown", function(e) { if (e.key === "Enter") { e.preventDefault(); } })