title: Keyup function didn't work with Tab key (jQuery)
body: <p>I have a problem with Tab key in jQuery. The function keyup of the Tab key doesn't working in anycase. Whatever I wrote in the function, it didn't work, only focus on the next textbox.</p>
  
  <p>I tried this:</p>
  
  <pre><code>$('#sn_c3_scan').keyup(function(event) {
          if (event.key == "Tab") {
              alert('haha');
          }
   });
  </code></pre>
  
  <p>And also this:</p>
  
  <pre><code>$('#sn_c3_scan').keyup(function(event) {
      if (event.keyCode == "9") {
          alert('haha');
      }
  });
  </code></pre>
  
  <p>By the way, the keydown event still worked. But because the keyup didn't work, anything I wrote about changing focus to another control will be wasted when the key released (because it automatically changed the focus to next control - which I didn't want).</p>
  
  <p>Anybody have any idea?</p>
  
  <p>By the way, this is my HTML for the textbox: </p>
  
  <pre><code>    &lt;div class="row c3"&gt;
          &lt;div class="col-md-3"&gt;
              &lt;b&gt;Serial (S/N):&lt;/b&gt; 
          &lt;/div&gt; 
          &lt;div class="col-md-9"&gt; 
              &lt;input type="text" id = "sn_c3_scan" class="form-control" autofocus&gt; 
          &lt;/div&gt; 
     &lt;/div&gt;
  
      &lt;div class="row c3"&gt;
          &lt;div class="col-md-3"&gt;
              &lt;b&gt;AAAA:&lt;/b&gt; 
          &lt;/div&gt; 
          &lt;div class="col-md-9"&gt; 
              &lt;input type="text" id = "sn_c3_scan2" class="form-control"&gt; 
          &lt;/div&gt; 
     &lt;/div&gt;
  </code></pre>