[OverlayManager] Add preventDefault to the keydown event handler

If we don't do this, pressing <kbd>Esc</kbd> while an overlay is open could abort loading of files for which the server doesn't specify the `contentLength`.

/cc @timvandermeij