Spritzing the compressed air around each key is a good idea; even if not all of the keys are stuck, this will prevent future sticking. [1] X Expert Source Mobile KangarooComputer & Phone Repair Specialists Expert Interview. 11 September 2019.
If you don’t have isopropyl alcohol, you can use water; however, make sure you pat dry your keyboard before proceeding if you do this. If your computer has a UV coating or a similar effect, do not use isopropyl alcohol as it will remove the coating. Use warm water instead.
If you have a laptop, refer to your laptop’s manual or online documentation for instructions on removing the keys (in most cases, you’ll pry the keys up from a specific point to avoid breaking their latches). If you have a MacBook laptop, you can remove the key(s) by prying it/them up from the top of the key(s). Most debris is found in the letters and numbers. Other keys tend to be less dirty and more difficult to replace after removal, especially the space bar. [3] X Research source
For laptop keyboards and other keyboards with delicate internal parts, use gentle swabbing with a Q-tip only.
Make sure they lubricant you’re using is specifically designed for keyboards or other sensitive plastics. Using a standard lubricant such as WD-40 may ruin the keyboard. This is only necessary if the mechanical keyboard’s lever(s) is/are still sticking after your cleaning.
If the keys are still sticking, particularly on an older mechanical keyboard, consider taking your keyboard in for professional repairs.
If your keyboard uses batteries, make sure it’s charged (or replace the batteries with fresh ones).
Windows — Open Start, click the Settings gear, click Update & Security, click Windows Update, click Check for updates, and install any available updates. Mac — Open the Apple menu, click App Store. . . , click the Updates tab, and click UPDATE ALL if it’s available. Chromebooks do not offer these kind of firmware updates for your keyboard, but you can delete your account and add it back, or hard reset your Chromebook’s hardware. [8] X Research source If you have a mechanical keyboard, another way you can update your keyboard’s drivers is by going to the keyboard manufacturer’s website, finding your model of keyboard, and looking for a driver download. You can then download the keyboard’s driver file and double-click it to run it.
You can reinstall Bluetooth keyboards by deleting them from the Bluetooth menu and then re-pairing them with your computer.