Mouse Click check and Disable player mouse movement

I'm doing a custom menu and I need to do the following:


1) I need to find a way to create a conditional branch for when the left mouse (or right mouse) button is clicked, but I'm not getting it right. This is what I have:

Spoiler
event2_zpsrb0rvxc3.jpg

¿What am I doing wrong?


2) I want to be able to move the character with the arrow keys while disabling the ability of the "mouse click move character". In other words, I want to click the screen with the mouse without making the character move towards that point, while moving the character with the arrow keys. How do I do that?


Thanks!
You will need a plug-in for that (I do not think there is another way).

Original thread: https://forums.rpgmakerweb.com/threads/mouse-click-check-and-disable-player-mouse-movement.48271/