The first thing to try is to use an external USB keyboard. If the external keyboard works OK then you will need to replace the laptop's keyboard. You can often find used replacement keyboards on Ebay. First find and download the Hardware Maintenance instructions so that you can follow them.