if (size() != 0)
if (inputMap != null)
  public KeyStroke[] keys()  {    if (size() != 0)      {    KeyStroke[] array = new KeyStroke[size()];    return (KeyStroke[]) inputMap.keySet().toArray(array);  }    return null;  }