New to ketgenic diet

I started a ketogenic diet last week and according it MyFitnessPal, was eating 16 to 20% carbs. Was doing and feeling fine until day 4, after walking on my treadmill for appr 1hr. Then I became very depressed and cried a lot. It could have been triggered by something I saw on FB, but more than I would have expected. Could something about the diet have caused this? It lasted till the next day. My husband went and bought me a lava cake and ice cream for my birthday and I actually felt better afterwards. Any connection? Also, I have lost 45 lbs at this point with 13 lbs to go to get to my ideal goal of 110 lbs, I am 5'1" and 51 years old.