Kedarkantha is one of the most common first Himalayan treks. Daily walking is short (4 to 6 km on most days), camps are close together and the climb is spread over three days, which helps the body adjust.
What catches beginners out is the cold and the summit day. You start around 2-3 am on snow, climb for 2-3 hours and then walk down to Hargaon, a day of roughly 7-8 hours in total.
A sensible baseline is being able to run or brisk-walk 5 km in about 35-40 minutes before you go, ideally with a few stair or hill sessions. Start training 6-8 weeks ahead. Anyone with heart, lung or blood-pressure issues should check with a doctor first.