What kind of keyboard is it? USB connected or wireless? If it is USB connected, check the connection the computer. Maybe clean off the connector if possible. If it is wireless, the batteries could be dying or the wireless receiver isn't in range. Try moving the receiver closer to keyboard.