It appears the primary problem was the battery in the transponder-like key head. I replaced it, and the problem hasn't reoccurred.
I'm using an aftermarket key that replaces a transponder key. It has a replaceable battery unlike the Ford transponder key.