So how long does it take to go into ketosis when fasting? On a standard keto diet, it typically takes around 2–3 days to reach ketosis, although it can take up to seven days in some cases. However, many people find that keto adaptation intermittent fasting can speed up the process and help your body burn through glycogen stores more quickly to help enter ketosis.
When you eat a meal, your body spends a few hours processing that food, burning what it can from what you just consumed.  Because it has all of this readily-available, easy to burn energy (thanks to the food you ate), your body will choose to use that as energy rather than the fat you have stored.  This is especially true if you just consumed carbohydrates/sugar, as your body prefers to burn sugar as energy before any other source.