1
This problem usually occurs on a laptop with a touchpad, are you using a PC with a mouse or a laptop?
Open the Settings App.
Go to the Mouse and Touchpad settings, check for any sensitivity settings or palm-check setting, and decrease any available sensitivity setting, and if there is a palm-check setting, enable that.
2
If that does not resolve the problem.
Open Command Prompt, then paste in this command and press Enter:
msdt.exe -id KeyboardDiagnostic
Run that Keyboard Troubleshooter to see if that can solve the problem.
.
If that does not resolve the problem.
Open Device Manager
Expand the Keyboards section
Right click your keyboard and choose 'Uninstall'
Then restart your PC