That`s somewhat of a positive update being that the computer remained functional for so long.
The keyboard does need to be checked but something else that I would is suggest what power settings you have, with the keyboard seemingly not working properly having the notebook not shutdown when the lid is closed would be a good setting to temporarily have..