First of all check dmesg or /var/log/messages for error messages and post them here. If this is a PS/2 keyboard, then the keyboard driver will be little chance to reload the keyboard driver, since it is built into the kernel. But since the touchpad works, I assume that there is some misconfiguration, because a typical touchpad is connected to the PS/2-AUX port. Does the keyboard even not work without X? If so there might be a hardware failure.