Insert a small flathead screwdriver under the keyboard bezel and carefully lift it up. Continue releasing plastic latches and removing the keyboard bezel with your fingers
Be careful, on some models the bezel might be connected to the motherboard as it shown on the picture above. If you accidentally pulled the cable, connect it back. It is not necessary to disconnect the keyboard bezel from the motherboard in order to remove and replace the keyboard, just put it aside so you can access the keyboard screws.
Remove three (or more) screws from the top of the keyboard. Carefully lift up the keyboard from the laptop case
The keyboard connects to the motherboard via a flat ribbon cable. Before you pull the cable from the connector, you’ll have to unlock the connector.
The image above illustrates how to unlock the keyboard connector. Carefully move the connector lock 2-3 millimeters up and after that pull the keyboard cable. To install the keyboard, follow the above mentioned steps in the reverse order.