Connect an external keyboard and see if the error in typing is there or not....
If not then you have to take out the chasis and search the back of the keyboard(after removing) for molten solder short circuit due to heat or pressure. Then order a new keyboard and replace
If problem in external keyboard also, then do a fresh installation of your OS or try to manually update the drivers of your keyboard ie reinstall them