@peterflynn Unfortunately, I don't think this will work. Problem is that content is enabled to allow selection so that it can be copied and pasted elsewhere. This means that any element inside InlineDocsViewer can be selected and receive focus (see [Raymond's comment](https://github.com/adobe/brackets/pull/6017#discussion_r7738809) for example), so we can't simply listen for events on only the container element.

So InlineDocsViewer still gets all key events while open. To minimize time spent handling keys for other elements, code immediately checks to see if key code is one of the (4) keys that we're interested in. If so, code then verifies that element with focus is inside InlineDocsViewer container.