In many games, especially games where you walk around as a character, I have found that the characters often walk without my finger holding the key required. The character will usually walk uncontrollably in one direction, let's say left, without me holding the left key down.
I am sometimes able to solve this issue by tapping the key again. Sometimes I mash the buttons to get them to stay still. Sometimes this issue is very persistent and hard to get rid of. I may stop them from going left, but then they will just walk in another direction.
This can really ruin good games for me, and it has been bugging me for a while with many different games. When I try to search for this issue on the internet, I can't seem to find the right wording, as my searches usually give me stuff about broken keyboards.
Is there a specific name for this issue? What is causing this, and how can I fix it?