Tutorials are full of key combinations. The kbd element marks text the reader should type or press, and a little CSS turns it into something that looks like a key.
Press <kbd><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd></kbd>
to open the command menu.
kbd kbd {
padding: 0.1em 0.4em;
border: 1px solid #d0d7de;
border-bottom-width: 2px;
border-radius: 4px;
font-size: 0.85em;
}
MDN describes nesting for exactly this case: an outer kbd for the whole input and inner ones for each key. The CSS styles only the inner ones, so the plus signs stay plain text between the keys. Browsers show kbd in a monospace font by default; I’d keep that.
The element is also correct for typed text, like “type <kbd>yes</kbd> and press Enter”. For text the computer shows back, MDN suggests samp, and for code code.
The caveat: the element is about meaning and looks. A screen reader reads the content like normal text and does not announce “key”, so write the combination so it reads well aloud. “Ctrl+Shift+P” works. A lone symbol like ⌘ may be read in an odd way or skipped, so I’d write “Cmd” next to it.
Further reading: MDN: The kbd element