Replace A Faulty Laptop Keyboard
If the keyboard is physically damaged or has become disconnected from the motherboard (perhaps due to a shock), then you’ll need to put some time aside to remove the component from your laptop and either reseat the connection or replace the keyboard altogether.
Different manufacturers build their laptops in a variety of ways, which means it’s difficult to specify a single fix.
However, opening different laptops from the same manufacturer is generally the same. This makes swapping the keyboard (or simply reseating the cable connection) a lot easier.