<code>if( e.keyCode === $.ui.keyCode.ENTER ) {</code> would improve readability.