Some people may experience leg cramps due to electrolyte imbalances when beginning the ketogenic diet. Ensure a steady intake of foods rich in essential minerals like potassium, magnesium, and sodium to help maintain electrolyte balance.