Disable movement with arrow keys

I want to disable the player movement with arrow keys, so he can't move using the arrow keys. Is there a way to do it? YEP Keyboard config / editing the rpg_core didn't help me.
editing the rpg_core didn't help me.
You should never edit your core script files directly. Always put your changes into plugins.

That said, all you need to do is copy the below into a text editor, save it as a *.js file, and include it as a plugin.

Or paste it into a Script event command that you have Autorun at the beginning of your game.

Code:
delete Input.keyMapper[37];
delete Input.keyMapper[38];
delete Input.keyMapper[39];
delete Input.keyMapper[40];

Note that this deletes their functionality everywhere, including selecting items in menus.

If there's some reason that you want the player to be able to use arrow keys in the menus but not for movement, that would take more extensive reprogramming of the engine's input handling to add new input codes that are discrete from the codes used for movement on the map and get referenced by the game's Window classes.
and YEP_KeyboardConfig does work, as you can allow both or player reference.
I play with arrow keys mostly because I use than a lot, but I agree with
ATT_Turan though, if it's just movement, you need more code.

there is a plugin to removement movement with arrow keys, but works
everywhere else.

the easiest way for movement alone is this function.
JavaScript:
Game_Player.prototype.getInputDirection = function() {
    return 0;
};

copy and paste in a plugin and add it to your plugin list.
this disables the arrow functions.
this disables the arrow functions.
That's not correct. That code disables all keyboard movement, from arrow keys, numpad, if you use Yanfly's Keyboard Config to bind WASD, anything.
This will disable player movement
Code:
if($gamePlayer.moveByInputCached === undefined)
//This checks if the value is undefined

$gamePlayer.moveByInputCached = $gamePlayer.moveByInput;
//If it is undefined, it sets to the current value of $gamePlayer.moveByInput which is 'true'

$gamePlayer.moveByInput = function(){
return false;
}

To enable it again
Code:
$gamePlayer.moveByInput = $gamePlayer.moveByInputCached;
//This resets the value of moveByInput to the cached value
I think at this point we need to just let the OP clarify, because they're getting a lot of stuff they didn't ask for.

Original thread: https://forums.rpgmakerweb.com/threads/disable-movement-with-arrow-keys.173983/