Mouse Button Release Check?

Hi! I know about:

(TouchInput.isPressed())

which checks if the mouse button is pressed. Works fine.

Are there commands for:
1) When Mouse button is released
2) When Mouse button is held
3) When Right mouse button is released
4) When Right mouse button is held

Any script calls would be helpful, otherwise please let me know of the plugin I would use to accomplish these checks. Thank you!
Here's a list, unfortunately there aren't many right click features in the engine right from the get go.

JavaScript:
TouchInput.isReleased(); // Left click is released
TouchInput.isPressed(); // Left click is held
TouchInput.isCancelled(); // Right click was pressed
Here's a list, unfortunately there aren't many right click features in the engine right from the get go.

JavaScript:
TouchInput.isReleased(); // Left click is released
TouchInput.isPressed(); // Left click is held
TouchInput.isCancelled(); // Right click was pressed
Awesome, Thanks so much! Would you happen to know where I can look up script calls like these on my own? Is there a master list somewhere?

I noticed when testing that TouchInput.isPressed(); also works with right click 🙁 . I was hoping these would be different..
@xTHExSILENCE you can check you "js" folder, it contains .js files which are used to make the engine work.
In this case TouchInput can be found inside the "rpg_core.js" file at around line 3448.

Original thread: https://forums.rpgmakerweb.com/threads/mouse-button-release-check.168362/