If the advice given above does not help then I would be tempted to remove all input devices one at a time or change them if you have some spares.
I have seen malfunctioning keyboards and mice do strange things in the past.
Note remove all joysticks, xbox controllers, driving wheels first...