Assuming it's out of warranty, buy a replacement keyswitch, take apart the keyboard, and solder in a replacement.
Mech keyboards are repairable but fiddly to disassemble.
I've heard of people using a straw trick to drop IPA into the spring mechanism, but it's not worked for me.