I’ve tried to fix many a laptop after the deadly “coffee spill” and most times it’s pointless. Sugar in coffee is a 99% your laptop will die thing. Milk or cream also means it’s pretty shot, but plain black coffee isn’t the problem as long as you can get the laptop shut off, (remove battery ASAP or unplug) and then gently shake the coffee out and leave the computer off for at least one day. (Then you have to take the dried out coffee and wipe it off. Sugar reacts very quickly to the laptop so will short your motherboard very fast.
If you do use anything, use alcohol wipes to clean the computer. Alcohol dries very quickly. Water is not a good thing for your laptop so if you do use water, used DISTILLED water, not bottled water but DISTLLED water and then make sure if you’re taking it apart to leave it to dry overnight to make sure every trace of water is gone before you turn it on again.
Keyboards can be kept clean but it’s kind of like “what’s the use.” Some people don’t realize tha a laptop keyboard reallys slides out pretty easily so can be replaced. It’ll run you about a hundred bucks (give or take a few) for a new one.
Water really isn’t an enemy as long as you’re not soaking the computer in it. I like the alcohol wipes for that reason. They come in very small packets and, as I said, it dries very quickly. Also make sure you have a place for the screws and mark down where each one goes so you can get them back together again properly