It's a common problem with electromechanical switches. Especially if you have salty, sweaty hands.
The solution is to get a keyboard that uses contactless switches like hall effect, TMR, optical, etc.
I designed and built my own hall effect keyboard (and custom 3D printed Void Switches) from scratch because I was having to replace my keyboard once every 18 months or so because of the exact problem you describe π€·