While macros will differ a little from person to person, the general rule of thumb for keto is to keep carbohydrates under 5% of your daily caloric intake. As long as you avoid the foods mentioned above, you should be fine. Google “TDEE calculator” if you need some additional guidance on how many calories to eat. I’ve had success following this way of eating as it allows me to eat foods that taste great. There are tons of resources online as well if you need additional guidance. A quick google search should turn up a ton of resources. Hope this helps!
Restricting your calories may be important for some individuals depending on their goals. Additionally, it may aid in the initiation of ketosis; however, not everyone will require calorie tracking to maintain a deficit. It is not uncommon for caloric-restriction to occur inadvertently as a ketogenic diet tends to be satiating, leaving individuals satisfied with fewer calories.
In 1921, Rollin Turner Woodyatt reviewed the research on diet and diabetes. He reported that three water-soluble compounds, β-hydroxybutyrate, acetoacetate, and acetone (known collectively as ketone bodies), were produced by the liver in otherwise healthy people when they were starved or if they consumed a very low-carbohydrate, high-fat diet. Dr. Russell Morse Wilder, at the Mayo Clinic, built on this research and coined the term "ketogenic diet" to describe a diet that produced a high level of ketone bodies in the blood (ketonemia) through an excess of fat and lack of carbohydrate. Wilder hoped to obtain the benefits of fasting in a dietary therapy that could be maintained indefinitely. His trial on a few epilepsy patients in 1921 was the first use of the ketogenic diet as a treatment for epilepsy.
Around this time, Bernarr Macfadden, an American exponent of physical culture, popularised the use of fasting to restore health. His disciple, the osteopathic physician Dr. Hugh William Conklin of Battle Creek, Michigan, began to treat his epilepsy patients by recommending fasting. Conklin conjectured that epileptic seizures were caused when a toxin, secreted from the Peyer's patches in the intestines, was discharged into the bloodstream. He recommended a fast lasting 18 to 25 days to allow this toxin to dissipate. Conklin probably treated hundreds of epilepsy patients with his "water diet" and boasted of a 90% cure rate in children, falling to 50% in adults. Later analysis of Conklin's case records showed 20% of his patients achieved freedom from seizures and 50% had some improvement.