Input event trouble

I'm trying to generate "key down" and "key up" events rather than the "key pressed" events described in the tutorials.



I've dug around in the example code and input handler source and from what I can tell here's how to do it:



[pre]

public class MyInputHandler extends InputHandler {



  public MyInputHandler(String api) {

    setKeyBindings(api);

    setActions();

  }



  private void setKeyBindings(String api) {

    KeyBindingManager keyboard = KeyBindingManager.getKeyBindingManager();



    keyboard.set("A", KeyInput.KEY_A);

  }



  private void setActions() {

    addAction(new MyKeyAction(0), "A", false);

  }



  public void update(float time) {

    super.update(time);

  }



  private class MyKeyAction extends KeyInputAction {

   

    public MyKeyAction(float speed) {

      setSpeed(speed);

    }



    public void performAction(InputActionEvent evt) {

      if(evt.getTriggerPressed()) {

        //key is down

      }

      else {

        //key is up

      }

    }

  }

}

[/pre]



performAction is getting called properly, but evt.getTriggerPressed() is always false.



What am I doing wrong here?  Something to do with 0 speed?