Ubuntu keeps inserting '222222...' across applications by itself at cursor position
Solution 1:
I faced the same problem.
It's actually that your keyboard is damaged and you need to replace it or disconnect the built-in keyboard and use an external keyboard.
If it's too costly to replace the keyboard so you can watch this to disable the built-in keyboard.
So this is a hardware problem and all the software is good.