title: Detect Ctrl + A in keyup event
body: <p>I want to detect the <kbd>Control</kbd> + <kbd>A</kbd> event in input. I can find the <kbd>Control</kbd> + <kbd>A</kbd> event, but the function is continuing even after <code>return false</code>.</p>
  
  <p>jsFiddle - <a href="http://jsfiddle.net/f6rcgpmh/4/">http://jsfiddle.net/f6rcgpmh/4/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.searchTerm').keyup(function(e) {
  
      $("#status").text("");
  
      if (e.ctrlKey) {
          if (e.keyCode == 65 || e.keyCode == 97) { // 'A' or 'a'
              console.log("Control pressed");
              e.preventDefault();
              return false;
          }
      }
      $("#status").text("This should not work if Ctrl + A is pressed");
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;form id="search" class="search"&gt;
      &lt;input class="searchTerm" placeholder="Filter Books..."&gt;
      &lt;input class="searchButton" type="submit"&gt;
  &lt;/form&gt;
  &lt;div id="status"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want this to work in <code>keyup</code> not in <code>keydown</code>. Because I am using autosearch and I don't want to call function before keyrelease. And also <kbd>Ctrl</kbd> + <kbd>A</kbd> won't highlight text in keydown when it returned false.</p>