To understand how many calories you need to take in every day, you’ll need to measure your NEAT expenditure as carefully as possible and hedge accordingly. Some activities that take up NEAT energy, such as fidgeting or typing, may need to be removed from your daily activities if you’re losing more energy than you can obtain with food. If you aren’t active enough, however, you may want to take up activities that use extra NEAT energy such as yard work or walking to work every day.
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!