MV A plugin that disables arrow key movement

To expand more on this, I'm looking for an MV plugin that only allows for the use of the "ESC" key to access the menu and the mouse for movement and interaction (click an area to go where you want to or what you want to interact with), sort of like a point and click.
Assuming that you want to disable movement with keyboard/gamepad, but you still want to allow people to use the keyboard/gamepad for UI navigation:
JavaScript:
Game_Player.prototype.getInputDirection = function() {
    return 0;
};

Just put that into a new .js file and add it to your project through the plugin manager.
Assuming that you want to disable movement with keyboard/gamepad, but you still want to allow people to use the keyboard/gamepad for UI navigation:
JavaScript:
Game_Player.prototype.getInputDirection = function() {
    return 0;
};

Just put that into a new .js file and add it to your project through the plugin manager.
Thanks a bunch <3

Original thread: https://forums.rpgmakerweb.com/threads/a-plugin-that-disables-arrow-key-movement.159304/