ignore keypress if not the body is in focus and no modifier was used.

prevents e.g. input fields from losing input events because a key was bound to an event.