How use keyboard events? It's simple:

<script>
    	$(document).ready(function() {
	  		$(window).keydown(function(event){
	    		if(event.keyCode == 13) {
	      			event.preventDefault();
	      			return false;
	    		}
	 		 });
		});
    
</script>