I experienced exactly the same phenomenon, hair-rending frustration and attempted similar useless remedies. I found no suggestion related to humid conditions.
I was on Cape Cod during the first part of August, by the ocean, rain, 95%+ humidity, high heat, no AC. After a day back home in conditioned space, keyboard and mouse worked perfectly. I came to the same conclusion that humidity was the culprit. I have not experienced this malfunction with other tablets or laptops in similar high humidity environments.
I did not have a hair dryer available but it might be a solution to drive out humidity; taking care not to get components too hot. I will try it next time.