MSteroids can cause mood swings, psychosis and depression, especially high doses. They affect the HPA axis. (Hypothalmis-Pituitary-Adrenal Axis.
However for some people with these problems already, a small replacement dose of steroid can actually help them feel better.