For what I have read so far I am not convinced about the keto diet as ketones are produced by the body as an emergency response in case there is little glucose available for the body to function. Not an expert, just interpreting what I have read.
The Plant Based Cyclist book from GCN provides an easy understanding on how nutrition works. It's targeted to plant based but it give a general insight about how to balance fat, proteins and carbohydrates.
HIGHLY recommended is The Huberman Lab podcast. The guy running it is a neurobiology professor at Stanford and he gives very detailed information on how to train and fast to improve alertness of the brain and recovery through sleep. Highlights: 14/16 hours of intermittent fasting, carbs in the evening as they promote sleep and recovery, no coffee after 12, absolute no food 3 hours before sleeping. Seems all sensible and easy to follow bit I personally find it difficult.
As long as the diet works for you, is sensible and aligned with your principle there is not better diets than others as far as I'm concerned.
Caveat: not a nutritionist nor a doctor, just sharing what I found!