By "some keys" you mean the ones at the bottom? There's a board in there with the keys on it. It has to be replaced.
But if you're talking about the A5, that's a 2013 phone - 5 years old. Replacing it with a newer one will be cheaper than fixing the old one.