Term: brain fart
Example: jeff had a brain fart and locked his keys in his car (again
Definition: a sudden and involuntary (although depending on the source, not altogether unexpected) release of ignorance