title: Capture delete key if not focused in a form
body: <p>I have a web app which plots points with SVG, I want to add the ability to delete a selected point by pressing the <kbd>delete</kbd> key. I can capture <kbd>delete</kbd> keydown (or up) for the entire document and prevent the default event (Chrome's default behavior is to go back a page), however this obviously blocks all delete events so the <kbd>delete</kbd> button no longer works in forms.</p>
  
  <p>Is there a way to set it up so that the <kbd>delete</kbd> key works as intended in forms/inputs but when anywhere else in the app it can be used as a custom delete function?</p>