You reinstalled Windows XP, and,
You installed a different graphics card. This would sound like a driver issue with the mouse and keyboard involved now.
Did you ever clear CMOS?
Do that, and if that doesn't fix it;
click Start, right click on My Computer, click Manage, click Device Manager, click the + by Display Adapter, right click on the card shown, click uninstall, reboot.