Before doing anything else, you will need to make sure that you have the skills and patience required to perform this job at home. You can also choose to take your laptop to the nearest computer repair store if you do not have the time to fix it by yourself.
If you accidentally spilled water on the keyboard, shut off the keyboard as soon as possible to avoid further damage to the hardware. Remember that water can come in contact with the sensitive hardware and electronic devices if you do not shut off the keyboard. It is advised to save your programmes and files before shutting down the computer. This will help you avoid losing data through automatic shutdown.
Now hold the laptop upside down to drain the keyboard of any water. If possible, use a towel or a piece of cloth to dry the keyboard immediately after the spill takes place. Furthermore, by using a towel you will reduce the risk of dropping the laptop on the floor considerably. It is recommended not to shake the computer. If possible, gently move the water out of the keys using a towel.
You can use a hair dryer to dry the remaining water. Simple switch on the dryer and blow the air to get rid of the water. Avoid melting any plastic parts by changing settings of the dryer to cool.
If the keyboard stops working due to dust particles right underneath the keys, you will be required to remove the keys one by one. Again use a piece of cloth or towel to clean the dust under the keys. If you are unsure about how to remove the keys from the keyboard, ask an expert to help you out.