It could be bad keyboard. They don't cost too much...roughly $25-$30. They are not that hard to replace. I am amazed that you were able to get the alt keys put back on; Those things were usually very hard to put back on on some laptops, if not impossible.
What you could also try is to reseat the cable that connects the keyboard to the motherboard.