KeyStroke[] keys = map.keys();
KeyStroke[] keys = map.allKeys();
  public void registerEntireMap (ComponentInputMap map)  {    if (map == null)      return;        JComponent comp = map.getComponent();    KeyStroke[] keys = map.keys();    if (keys == null)      return;    // Find the top-level container associated with this ComponentInputMap    Container topLevel = findTopLevel(comp);    if (topLevel == null)      return;        // Register the KeyStrokes in the top-level container's Hashtable    Hashtable keyToComponent = getHashtableForTopLevel(topLevel);    for (int i = 0; i < keys.length; i++)      keyToComponent.put(keys[i], comp);  }