title: JQuery addEventListener not resetting after keydown input
body: <p>I'm trying to create an event listener that listens for the keyboard input <code>ZZPX</code> and focuses a text input - so that when a barcode is scanned e.g. ZZPX12345 the 12345 portion is entered into a text input and the form is submitted. </p>
  
  <p>Everything works fine except once ZZPX has been entered the script keeps looping so if any other keys are pressed it automatically focuses the text input for ANY key. I assume I need to try and reset this listener but I'm not sure how to and I've tried looking at other methods but to no avail.</p>
  
  <pre><code>if ( window.addEventListener ) {
      var kkeys = [], konami = "90,90,80,88"; 
      window.addEventListener("keydown", function(e){
              kkeys.push( e.keyCode );
              if ( kkeys.toString().indexOf( konami ) &gt;= 0 ) {
                  // run code here    
                  $("#barcodeInput").focus();
              }
      }, true);
  }
  </code></pre>