Have you tried playing a game not in RPG Maker, such as something on Steam or itch.io, to make sure it's just an issue with RPGMaker?
If it's not a problem with your computer, you could try resetting the settings in RPGMaker to default settings to see if that fixes the issue. You may have accedently changed a setting that messes with controlling characters