Please perform the following steps as shown in the pictures below.
Attention: If a travel cover is installed on the computer you are servicing, you need to remove it before removing the screw that secures the keyboard. In models with the travel cover, screw [1a] should have been removed when you removed the travel cover.
Lift the keyboard a little in the direction shown by arrow [4], and then detach the connector [5].
Keyboard installation
Attach the keyboard connector.
Attach the keyboard so that the keyboard edges [a] are under the frame as shown in this figure.
To make sure that the front side of the keyboard is housed firmly, gently press the keys with your thumbs and try to slide the keyboard toward you.
Secure the keyboard by tightening the screws from the bottom side of the computer.