I had a similar problem and was trying to hard SMC reset by opening the Macbook pro and unplugging the battery. This did not help, but after trying this I unplugged the trackpad cable and keyboard cables then plugged them back and it worked! I suspect a loose connection with one of them.