Is your PC a laptop?
Some laptops have a keyboard shortcut key that causes this behavior. It is often caused by accidentally pressing the shortcut key.
Try one shortcut key at a time and see if the mentioned behavior stops occurring.
Fn + Space Bar (Hold for 3 seconds)
Fn + A
Fn + S
Feel free to ask back any questions.