To check your keyboard and mouse update or change the USB port drivers the device is plugged into. If that is not done, it could cause improper device input for mice, keyboards, etc. To check functionality for machine USB ports, ensure the working of the ports by testing each with a device.