JSFiddle - React, Tailwind, and code Playground
HTML
<kbd class="osSpecificCtrlKey"></kbd>
CSS
body
{
background: #fff;
}
kbd.osSpecificCtrlKey::after
{
content: 'ctrl';
}
@supports (-webkit-font-smoothing: auto) or (-moz-osx-font-smoothing: auto)
{
body { background:#5ae; }
kbd.osSpecificCtrlKey::after { content: '⌘'; }
}