Carb intake for sedentary job and gym routine with keto?

I am a 33 y/o male. I work from home behind my computer for 8 hours a day, then go to the gym and do some cardio and lift for about 1.25 hours with pretty high intensity. I have experienced ketosis fever more than once due to a serious lack of carbs which I’ve fixed for the most part but am keen to determine what the optimal intake ought to be with my contrasting physical activity levels throughout the day.

How do others handle a keto diet, a sedentary job but also want to maintain high energy levels for an intense workout each day? What does your diet look like during the day? Do you carb load before your workout? If so, how much and how long prior to the workout?

Carb intake for sedentary job and gym routine with keto?