If you are working on a laptop (whether PC or Mac), the key is held in place by a flimsy plastic clip, which also serves as the spring. The keys are attached in slightly different ways on each type of keyboard, so removing them will be different on each type. [3] X Research source If you’re unsure if or how your laptop keys come off, consult your manual. Mechanical keyboards should not be fixed by prying at the keys. Most keyboards include a key puller that will remove individual key caps off of the keyboard. Don’t remove all the keys at once, as you may have trouble remembering where they all go. Don’t do more than a couple at one time.

If using a laptop, insert the clip into the position it originally held before you place the key back into its spot.