If you had a lot of corrosion on the terminals it may have crept up inside the cable coverings. Give us some more info. about you truck, year, model, engine, etc. Maybe someone has had a similar problem that could help. Good luck.
"Better tried by twelve, than carried by six"
I tend to think donuts certify ones copliness....... Luther "Suitcase" Simpson
If it's on the original battery, you should change it out for a new one. A bad cell can cause a lot of issues. OEM batteries are not made to last very long. The trucks eat electricity and burn gas. Buy a good one and drive on.
Sounds to me like an ignition issue/key/mykey issue. It seems like your truck's anti-theft is malfunctioning. The first thing I would do is reset the computer by disconnecting the battery for 10-15 minutes.
2012 scab XTR 5.0L, 4X4 3.55 ELD, series 100 remote start, rugged liner soft tri-fold tonneau, OEM winter matts, Rigid dually floods, 2" level with General AT2 275/70/18, FoMoCo chrome band mud flaps.
2011 Fusion SEL 2.5L series 100 remote start, Halogen lamps, ambient lighting.
In the cold. Deep underground.