title: <enter> stops working on keypress
body: <p>html:</p>
  
  <pre><code>&lt;div class="col-md-10 col-sm-10 col-xs-10"&gt;
      {{ form_widget(experienceForm.description, {
          'attr': {
              'class': 'form-control field-max-length field-max-length field-line-length',
              'rows': 6
          }
       })}}
  &lt;/div&gt;
  
  handleChangeLineCounter = function() {
      $('.field-line-length').keyup(function (e) {
          e.preventDefault();
          var countLineNum = (this.value.match(/\n/g)||[]).length;
          console.log(countLineNum);
          checkEnterKey ($(this), 7, countLineNum);
      });
  }
  
  function checkEnterKey (getVarName, maxLine, countLine) {
      var msg2 = maxLine - countLine +' lignes restantes,';
      if ((maxLine - countLine) === 1 || (maxLine - countLine) === 0) {
          msg2 = maxLine - countLine +' ligne restante,';
      }
  
      getVarName.keypress(function(e) {
          if(e.which === 13) {
              if ((maxLine - countLine) &lt; 1) {
                  return false;
              }
              else if ((maxLine - countLine) &gt; 0) {
                  return true;
              }
          }
      });
  
      $('.counter-msg-2').remove();
      getVarName.after('&lt;span class="counter-msg-2 m-r-5"&gt;&lt;span class="counter_msg_2"&gt;' + msg2 + '&lt;/span&gt;&lt;/span&gt;');
  }
  </code></pre>
  
  <p>From the above code, in the function <code>checkEnterKey()</code>, when (<code>maxLine - countLine</code>) reaches 0, I press delete key or backspace key then press enter key again, the key stops working.
  On the contrary if (<code>maxLine - countLine</code>) does not reach 0, I press delete key or backspace key then press enter key again, the key works.
  How can I make the enter key work when I reach <code>(maxLine - countLine) = 0</code> ?</p>