Fixed keydown block when a document is not an active NB document.