I know the feeling all too well. I call it brain fog or auto-pilot mode. This basically is what would happen, at least to me, I would leave my apartment and by the time I got to the bottom of the stairs I couldn't remember if I had locked the door or not. Or forgetting if I had picked up a shift at work, and what time my shift was. The auto-pilot mode term comes from the feeling of just complete detachment I occasionally would experience (this stems from Complex Partial Epilepsy), I would often be walking to and from a course and not really even realize it. One moment I'm leaving a lecture hall and the next thing I realize is that I'm in my next classes hall, with out recalling ever really walking there. It had gotten pretty bad and would occur while I would drive, I luckily and thankfully never had an accident and always managed to get to where ever I was going, but I pretty much gave up on driving after it started to occur more frequently while I was driving.
Anyways, something I found that was beneficial for the brain fog and seems to help a bit with the "Auto-Pilot mode" (APM tired of typing it LMFAO) is Piracetam. Basically it acts on your acetylcholine receptors which are used in memory and thought processes and stimulates them. There is a lot of information on Piracetam at these two links the first link is pretty much just general information regarding Piracetam, and the second is a long list (including a downloadable PDF) of research done on Piracetam:
Piracetam, what is Piracetam? | Smart Drugs for Thought
Piracetam Research | Smart Drugs for Thought
A few other things I'm doing to try to help prevent the continuing of brain fog and APM is sudokos, word finds/searches, crossword puzzles, and picture puzzles (the kind where theres two identical pictures of each thing that shows, and then they are hidden and you have to remember them). I know these sound childish but they can really help improve your memory, especially your short term memory. Also eating healthy (oh wow! whofigured right?), and getting a good restful sleep.
I really hope that this sort of helps you. I honestly sympathize with you

I miss driving a lot...used to be one of my favorite hobbies but I'm too scared I'll end up hurting someone or myself still.