I just tried with on screen keyboard and it works. What could the problem be ? I am tired of copy pasting stuff. It is not an Malware as I scanned 3 times with Malwarebytes. Also it sometimes does work randomly and then stop working and then I have to spam my keys and they work for like a second.
Most laptop have a membrane KB and not infrequently I see "stuff" stuck near the key switch under the the keycap. With the computer OFF, try turning it off, flipping it upside down so particles fall out, and spraying compressed dry air (from a can made for cleaning computers) under and around the offending keys.
They can of course also just wear out and become intermittent or fully fail.
Since the on screen KB works without issue, I would try cleaning, and then if that fails spend $10 buying a replacement KB off EBAY and install it, which is not difficult. Watch
THIS YouTube video on how to before ordering and if you decide to do it watch again taking notes just before doing it. Keep all screws in a container so you don't lose any -- they are quite small M2 and M2.5.
This assumes that you are comfortable working on your laptop. I do it a lot but if you aren't "handy" in such things you can have a shop do it for an inflated amount (my guess would be ~ $100 but perhaps less).