Use elbow height as the starting point
The keyboard should sit near relaxed elbow height while shoulders stay down. A desk that cannot reach both sitting and standing elbow height will force posture compromises.
Account for shoes and floor mats
Standing height changes with shoes, anti-fatigue mats, and keyboard trays. Measure the real setup rather than relying only on a generic height chart.
Monitor height is separate
Desk height sets keyboard and mouse position. Monitor height often needs a stand or arm so the screen can meet eye level without raising the keyboard too high.
Presets help only after tuning
Memory buttons are useful once the heights are correct. Spend time dialing in the numbers before treating presets as solved ergonomics.