As for branched-chain amino acids, you'll find smart people who swear that they're keto-friendly, and others who don't. One of the BCAAs, valine, can be glucogenic, meaning that it can lead to glucose production and potentially contribute to leaving ketosis behind. But does that mean it will happen? Not necessarily, particularly if you're just an occasional supplement user.
There are many ways in which epilepsy occurs. Examples of pathological physiology include: unusual excitatory connections within the neuronal network of the brain; abnormal neuron structure leading to altered current flow; decreased inhibitory neurotransmitter synthesis; ineffective receptors for inhibitory neurotransmitters; insufficient breakdown of excitatory neurotransmitters leading to excess; immature synapse development; and impaired function of ionic channels.