Do you have an external keyboard to check whether it's a software or a hardware issue?
You can try:
Uninstall the keyboard driver.
Reboot the computer (without reinstalling the driver).
When it restarts, it should reinstall the driver on its own.
You may also try updating the Synaptics...