Restart your computer. If it is a wired keyboard, try connecting it to a different USB port or another computer. If it is a laptop Keyboard, try connecting a spare keyboard to isolate if it is a hardware problem.