Represent keystrokes (Or potentially any text?)

How does one represent the keystrokes in this fancy format below?
From this post:

<kbd>Your Text Here</kbd>

Turns into:

Your Text Here

1 Like