This is difficult to do. It would be possible to catch the keydown/keypress event but since there is no focusable element it would be necessary to do it for the window object. This could potentially disrupt behavior of standard controls on the page (like <input>).