Is fat adadptation about the food you eat or timing?

Hi there,

I understande that sugar and flour are not supposed to eaten, but I thought you had to follow a keto diet and keep your carbs super low to become fat adapted. Is it more about the eating window and colories consumed or do macros really count?