Disable player movement for left and right buttons [solved]

What the title says. I searched all over but couldn't find anything or maybe I'm too tired to search properly.
What I need:
1) A way to disable player movement for left and right buttons.
2) The buttons will however work from conditional branches like - if left button is pressed down, do stuff.
you can use this plugin for it. which locks the movement of a dirction or multiple directions.
Parallel Event:
Conditional Branch Left Button pressed? if yes Set Movementroute Player Wait 4 Frames (No Wait marked)
end
same for the right direction button...
@ShadowDragon Thanks it worked ^^
@Bex That's a nice way to do it. Why didn't I think of that? Thanks!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/disable-player-movement-for-left-and-right-buttons-solved.114308/