I wonder if ketosis cures your psychosis, or if you started ketosis at a time when your body fixed itself.
My first thought was about Ketosis being used to treat epilepsy, but Ketosis can DRASTICALLY change the quality of your sleep.
Maybe you just needed the extra sleep, or deeper sleep that you are getting while on Keto.
I've taken maybe 10 medications for depression. Ketosis was more effective for me than probably 8 of them.
I myself become very lethargic under a normal carbohydrate-containing diet. On low carb I have a lot of motivation and a lot of energy.