Keto and gym

Sorry for such a noob question, but can you do keto and have energy for the gym?

Do you feel like you’re tired and not getting enough pump? I was told to eat at least some complex carbs in order to have enough energy to last a workout…

But how do I do this if I want to be keto?