Keto works by changing the way the body turns food into energy. Typically, during digestion, we break down carbohydrates — like those found in the verboten foods above — into molecules of fructose, galactose, and glucose, the last of which serves as the body’s primary source of energy. When the body can’t draw it from carbohydrates — either because they’ve been cut out of the diet or because a person hasn’t eaten for a long time — it looks for other forms of energy. The keto diet deliberately places the body in a state of ketosis, where fat is released from cells and turned into ketones, the body’s plan B for energy production.
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!