what kind of keyboard??? If usb, make sure it is in the first slot, accept the bios error and wait a few minutes after windows fully loads. If PS2, then look for the lights coming on, if they do not, then try reseating them, making sure they are in the correct places (keyboard/Mouse). If still nothing, try removing the mouse and see if the keyboard works. If not, and you cannot get into the bios, try another keyboard /mouse. If it isnt working by this point, your port on the motherboard is probably dead, consider
1. replacing the motherboard
2. getting an expansion board for PS2
3. If the system is old, then it might be a good idea to replace it.