Holding button

If there are some script or code to make holding button conditional branch like this?
Conditional branch: Button ... is being holded (not only pressed)
Ruby:
Input.trigger?(:A)
Input.repeat?(:A)
Input.press?(:A)

Input.press is the one you're thinking of when it comes to a button input you have to hold down.
Ruby:
Input.trigger?(:A)
Input.repeat?(:A)
Input.press?(:A)

Input.press is the one you're thinking of when it comes to a button input you have to hold down.
Thanks really much.

Original thread: https://forums.rpgmakerweb.com/threads/holding-button.147486/