not know if (one) is afoot or on horseback
To be so totally and utterly confused as to be unaware of one's actions. I've had such a long day that I don't know if I'm afoot or on horseback—I think I need to lie down! I finally got Billy a math tutor because his test grades clearly showed that he didn't know if he was afoot or on horseback in that class.