Holding mouse buttons to trigger continuous event

This is more of a "Why won't this work" than a "How does this work", but basically I want a thing to happen until I stop holding down click on my mouse. A simple conditional branch using TouchInput.isPressed() for the left click works just fine, but doing the same thing with TouchInput.isCancelled() for the right click doesn't for some reason. No matter what it only seems to register as a single input. Any ideas?
Post a screenshot of your event and we might be able figure it out.

Original thread: https://forums.rpgmakerweb.com/threads/holding-mouse-buttons-to-trigger-continuous-event.125123/