Have a look in device manager and see if there are any conflicts shown, it could be that something is trying to use the same IRQ as the keyboard and/or mouse. try using the system for a similar time without the mouse plugged in, use keyboard shortcuts etc, if it happens after a certain amount of time it could be a motherboard problem.
Have you installed any new hardware or software recently?