code: public void addPressCommand (int keyCode, String command, int rate, long repeatDelay)
      {
          KeyRecord krec = getKeyRecord(keyCode);
          krec.pressCommand = command;
          krec.repeatRate = rate;
          krec.repeatDelay = repeatDelay;
      }
docs: Adds a mapping from a key press to an action command string that will auto-repeat at the
  specified repeat rate after the specified auto-repeat delay has expired. Overwrites any
  existing mapping for the specified key code that may have already been registered.
  
  @param rate the number of times each second that the key press should be repeated while the
  key is down; passing <code>0</code> will result in no repeating.
  @param repeatDelay the delay in milliseconds before auto-repeating key press events will be
  generated for the key.