MV Disable Movement In a specific direction [Solved]

Hello, as you can read in the topic I need to remove movement in up and down directions, cuz I'm making side scroller game. I can't remove all the input for up and down. I still need it for menu etc. Just movement on the map. Is there any script call that can help me with that?

Edit: Ok, I found solution.

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-movement-in-a-specific-direction-solved.150931/