ignore keypress if not the body is in focus and no modifier was used. (prevents e.g. input fields from losing input events)