Focus on field after keydown event without inserting character
<p>I have a shortcut key <kbd>K</kbd>. It should focus on my input, but I don't want it to insert the letter <code>K</code> when it focuses.</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>$(document).keydown(function(event) { 
    if (event.which == 75) {
        $('input').focus();
    }
});</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"&gt;&lt;/script&gt;
&lt;input type="text"&gt;</code></pre>
</div>
</div>
</p>