This is the {{key press}} template that we stole from Wikipedia. Unlike Wikipedia, this template does not use Lua which means its features are much more limited than Wikipedia's. It allows for only one input.
{{key press}}
Example:
{{key press|A}} → A
{{key press|A}}