I was browsing some sites about Keto and I happened across a page at Cleveland Clinic which mentioned that:

Clearly, the ketogenic diet is the standard of care for treatment-resistant epilepsy. But we’re also seeing its benefits in other neurological conditions. Research suggests the keto diet can bring improvements for those with Alzheimer’s disease; autism; or brain cancers such as glioblastoma. -Team, Wellness. “What Is the Keto Diet (and Should You Try It)?” Health Essentials from Cleveland Clinic. Health Essentials from Cleveland Clinic, October 29, 2018. health.clevelandclinic.org/what-is-the-keto-diet-and-should-you-try-it/.

I found that interesting because isn't epilepsy a condition that often involves drug treatment? What if a matter of dietary change could offer positive outcome for the condition?

The clinic actually has a whole page of information on using the ketogenic diet as a treatment for epilepsy. They say that the diet may result in a response to it in the first 48 hours, but whether or not the diet is effective for an individual can't be determined until the patient has been on it for 1 to 3 months.

The clinic says that patients may remain on the ketogenic diet for 2 to 3 years or longer if the diet results in better control of seizures.

Apparently there have been studies that have shown which types of epilepsy conditions the ketogenic diet is most beneficial for:

The ketogenic diet has been shown in many studies to be particularly helpful for some epilepsy conditions. These include infantile spasms, Rett syndrome, tuberous sclerosis complex, Dravet syndrome, Doose syndrome, and GLUT-1 deficiency. Using a formula-only ketogenic diet for infants and gastrostomy-tube fed children may lead to better compliance and possibly even improved efficacy. - “Ketogenic Diet.” Epilepsy Foundation, 2017. www.epilepsy.com/learn/treating-seizures-and-epilepsy/dietary-therapies/ketogenic-diet.

The ketogenic diet seems to improve the wellbeing of at least half the people who try it to reduce seizures:

Studies have shown that more than 50 percent of people who try the ketogenic diet have a greater than 50 percent improvement in seizure control and 10 percent experience seizure freedom.  -“The Epilepsies and Seizures: Hope Through Research | National Institute of Neurological Disorders and Stroke.” Nih.gov, 2018. www.ninds.nih.gov/Disorders/Patient-Caregiver-Education/Hope-Through-Research/Epilepsies-and-Seizures-Hope-Through.

The ketogenic diet can be challenging, but it may be just the solution for some who drugs haven't offered them improvement. Maybe you could ask your doctor if the ketogenic diet could help you.