I have been issues of random keys, not working. I do not know how long this has gone on as I do not normally use the laptop keyboard. all that has been done with this laptop is. replace the screen
attached is a picture of a keyboard testing website, showing all the keys that do not work
If plugging in an external keyboard doesn’t render the same results - My guess would be hardware related. You can try re-seating/re-attaching the ribbon cable from the keyboard to the motherboard, and ensure no other ribbon cables are loose. If that does not fix it, I would look towards getting a replacement keyboard.