Try holding the right Shift key for 8 seconds, which may lock or unlock the keyboard. Check if there is physical damage on your keyboard or individual keys. Clean your keyboard. Unplug your keyboard, restart your computer, and then reconnect it. Update your keyboard drivers.