Function keyStatus

  • return the key status of the specified action

    Parameters

    • action: string

      user defined corresponding action

    Returns boolean

    down (true) or up(false)