Poor diet can certainly impact a person's mood. It's great that you are intune with your emotions and were able to spot the correlation.
Enjoy the keto! I love keto food. Haven't done it in awhile, but I try to eat less carbs... I know I fall off the wagon often though!