This forked version adds the keyboard shortcut Ctrl-K to insert the code.
A super simple component which allows quick <kbd> usage
I tested this using discourse's core themes and doesn't seem to have a problem. If there is functionality problems, it's probably an issue with your discourse or any unsupported themes.
<kbd>
is fun!