if (inputMap != null)
  public KeyStroke[] allKeys()  {    Set set = new HashSet();    if (parent != null)      {        Object[] parentKeys = parent.allKeys();        if (parentKeys != null)          set.addAll(Arrays.asList(parentKeys));      }    set.addAll(inputMap.keySet());    if (set.size() == 0)      return null;        KeyStroke[] array = new KeyStroke[set.size()];    return (KeyStroke[]) set.toArray(array);  }