most probably you have an old driver for a graphic tablet or a gamepad installed - a modern Windows no longer needs those drivers (they were for pre-WinXP), and they mix up an old input API that is used by the RMs with wrong signals. Simply remove the driver and use that device without its driver.
Alternatively, it could also be a defective keyboard, a gamepad that is being pressed by something else (like a book lying on it, had happened before) or a looping move route (unlikely if really a new project, but happened in other projects where the developer placed the wrong events)