How to diagnose intermittent keyboard lockup and mouse problems
The problem was the battery was expanding and pressing on the motherboard. I was told by Apple that it is not uncommon for old batteries to expand after a few hours of using the machine. In summary, I just needed to replace the battery.