To my mind it's un likely that removing/reconnecting keyboard/mouse combinations would cause the problem you see. More likely a corruption of part of the hard drive or a faulty driver. Have you tried to see if it will boot into Safe mode? If so it's likely a driver problem.
If not see click here for options to recover rather than reload XP from scratch.