Middle row of keyboard (a-;) duplicating top row (q-p)
The keyboard in your Mac may need to be replaced, but you could try just disconnecting and reconnecting the keyboard using a guide from iFixit for repairing polyurethane MacBooks. Select your model from the list and then select keyboard replacement. I've repaired a slightly older MacBook than a 2010 for one of customers before, and it wasn't all that difficult, but just take a look at the guide from beginning to end to make sure you're comfortable with the repair before you attempt it.