I would try and clean the keyboard, while it is removed from the laptop.
Check for corrosion under the keyboard too, salt tends to do that to metals. then reassemble the laptop and try it. You may just need to replace the keyboard. That is not generally expensive at all.