Why Jeep Grand Cherokee was dying almost overnight

I was also having a problem with my Jeep GC dying overnight, I replaced the battery and had everything checked by the mechanic. My mechanic found that the problem was with the keyhole. If the key was turned all the way towards me my GC was put into accessory mode, this caused everything in the car to be left on. When in accessory mode the key should be locked in and not able to be released. The keyhole on my jeep was allowing me to take the key out which was leaving all the electronics in the car on. We found this problem after I would turn my jeep off, take the key out and the stereo kept playing as long as the windows kept going down far after I was done driving. This may be a simple problem that can be overlooked. Just an idea for Jeep owners that are having this problem.