it's related to the startup disk (OS).
It has nothing to do with the input (almost certain, but you could always unplug both the keyboard and mouse and turn on that mac, I'm certain the issue will come up again).
You may have to re-install the OS, or use the OS from CD/DVD and set the startup disk.
Do you have more than one system installed?