title: on down arrow KeyPress, click event is getting fired
body: <p>on down arrow keypress , click event is getting fired, event.keycode is undefined</p>
  
  <pre><code>$(".dropdown:not(.li-search) a.dropdown-toggle", ".navbar-collapse").on("click", function(event) {
  
      var target = $(this).attr("target");
  
      if (event.keyCode !== '40'){
        if (!$(".li-menu").is(":visible") &amp;&amp; target === undefined) {
          location.href=this.href;
        } else {
          window.open(this.href, '_blank');
        }
      }
  });
  </code></pre>
  
  <p>in this code i am trying to open main menu in new tab , but external link is getting open on <strong>down arrow keypress</strong> </p>