Choose replacement keycaps by fit and feel
Check stem, bottom-row widths and the profile before ordering.

Measure unusual keys
Inspect stem compatibility and compare the space bar and modifier widths with the set’s layout diagram. Measure in key units rather than assuming all compact layouts use the same sizes.
Check clearance
Test a spare cap on one row if possible. Listen for a scrape and press the switch slowly. Confirm letters are readable in normal light, especially if you rely on keyboard backlighting.
Prioritize the layout
I would buy a complete compatible set over a nicer finish that leaves a short Shift key unmatched. Choose texture from a sample if hand feel matters.