The keyboard issue was probably caused by the battery, which can be replaced, and the keyboard would have likely returned to normal after the battery replacement.
In fact, depending on the model, the battery replacement may well have also entailed replacing the whole top cover (including the keyboard).