Function triggerKeyEvent

  • trigger the specified key (simulated) event

    Parameters

    • keyCode: number

      (See input.KEY)

    • Optionalstatus: boolean

      true to trigger a key down event, or false for key up event

    • OptionalmouseButton: number

      the mouse button to trigger

    Returns void

    // trigger a key press
    me.input.triggerKeyEvent(me.input.KEY.LEFT, true);