InputMap m1 = p.getInputMap(JComponent.WHEN_FOCUSED);
harness.check(m1.keys(), null);
InputMap m1p = m1.getParent();
harness.check(m1p, null);
InputMap m2 = p.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
harness.check(m2.keys(), null);
harness.check(m2.getParent(), null);
InputMap m3 = p.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
harness.check(m3.keys(), null);
InputMap m3p = m3.getParent();
harness.check(m3p.get(KeyStroke.getKeyStroke("pressed ESCAPE")), "close");