title: Active a function when Key hit/pressed in InputBox in Javascript?
body: <p>I want when a user will hit <kbd>ENTER</kbd> key in INPUT BOX a function will be activate. Something like below:</p>
  <pre><code>if (ENTERKEY is Pressed in INPUTBOX){
      Function(){....
      }
  };
  </code></pre>
  <p>This is Input box:</p>
  <pre><code>&lt;input class=&quot;form-control&quot; type=&quot;text&quot; id=&quot;second_gear&quot;/&gt;
  </code></pre>
  <p>to trigger this function after hitting the <kbd>ENTER</kbd> key:</p>
  <pre><code>jump = function () {
         //do...........
         //do.....
      }
  </code></pre>