Your PC is more resilient than you think, but it still needs regular maintenance, and that includes both physical maintenance ...
A good mechanical keyboard could be a purchase that lasts you for the rest of your life, but it will require some regular maintenance, like lubing switches.