Prevent enter to submit form / disable enter
And the answer is :-)

$form['#attributes'] = array('onsubmit' =&gt; 'return false');


or alternatively (the above will disable submit all together)

  $('#edit-searchfield').keypress(function(event) {
   if (event.keyCode == '13') {
       event.preventDefault();
   }
});