Reference »

How to stop the Enter key in text fields from submitting a web form

(Useful for LimeSurvey, for example.)

Add this at the end of the content, just before </body>:

<script type="text/javascript">
document.querySelectorAll("input.text").forEach( function (element, index) { 
    element.addEventListener('keypress', function(event) {
        if (event.keyCode == 13) {
            event.preventDefault();
        }
    });
});
</script>