前後不覚(ぜんごふかく)

Japanese vocabulary

Meaning: unconsciousness; having no recollection of one's actions

See it used in real works