How old is the keyboard?
Try the keyboard on another computer.
Try another keyboard on your computer.
Determine if the problem follows the keyboard or remains with the computer.
Any drivers involved? If so, download from the manufacturer and reinstall.
Need to determine if the keyboard is defective or broken. If so, hopefully you can return the keyboard for a refund or replacement.