Interrupt a player's movement with scripting

I need a way to briefly interrupt a character's movement using scripting. Specifically, I want to be able to have whatever movement button they're clicking to stop registering as wanting to move, until they push that button down again.

I noticed in the documentation at https://kinoar.github.io/rmmv-doc-web/classes/game_event.html, that in the "Interface" section that there's one for "clear" under "InputStatic", which looks like it would do exactly what I want it to, but I don't know how to call this to make it happen.

Any suggestions are appreciated!
I noticed in the documentation at https://kinoar.github.io/rmmv-doc-web/classes/game_event.html, that in the "Interface" section that there's one for "clear" under "InputStatic", which looks like it would do exactly what I want it to, but I don't know how to call this to make it happen.

That would be:
Input.clear()
Spoiler: Function: Input.clear
1589556523952.png

However that still won't do really what you need.
That will only clear the input but if the button is still held it will be re-triggered immediately after.
(also that would't effect mouse/touch movement 😉)

... ... ...

That said though I do also have the solution...

I want to be able to have whatever movement button they're clicking to stop registering as wanting to move, until they push that button down again.
I've created a plugin now for this:
Spoiler: Screenshot
1589556087474.png
PS. Sorry for the delay on the reply, didn't notice this thread until just now.
Usually I don't check on the Learning Javascript Board very often.

Edit:
...or if not mine just remembered there are a few other free ones too I think that could do what you need (and much more features) like: http://himeworks.com/2015/12/movement-direction-lock/
Thank you for the suggestion! I did end up wandering across it, but it didn't have the result I was looking for, so I wasn't sure if it was working as intended. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/interrupt-a-players-movement-with-scripting.121403/