How to follow the instruction to diagnose Mac?
Its not a capital D, they would have specified "Shift-D" if in that case. Just hold d itself.

If it doesn't work, see the Learn More section at the bottom of that article.