How can I keep the browser from intercepting and interpreting keys
<p>I want keystrokes to trigger some javascript code. I found <a href="https://stackoverflow.com/q/2878983">Capture key press without placing an input element on the page?</a> and it works, except that the browser gets those keystrokes, too, and does a lot of unwanted things, for example, it starts "Quick Find" and takes the focus away.</p>

<p>So how can I tell the browser to ignore a range of keys for a specific window?</p>