hi ,
if no liquid spillage , reset the power on the computer by unplugging the AC and hold the power button for 10 sec.
if still the same .
it could be liquid spillage , try external keyboard and if it works fine then replace the keyboard .
if when you use the external keyboard it types wrongly again replace the keyboard and the internal keyboard interferes with input .
let me know the outcome
all the best