Function unlockKey

  • unlock a key manually

    Parameters

    • action: string

      user defined corresponding action

    Returns void

    // Unlock jump when touching the ground
    if (!this.falling && !this.jumping) {
    me.input.unlockKey("jump");
    }