Template:Key/doc

When used, this template displays keyboard keys. For controller buttons, use Template:Button.
 * This template's display is styled using the  and   classes located in MediaWiki:Common.css.

Usage

 * Note: For a summary of possible console, key, and button values, see Template:Key/library.

There is only one required input:

  is the keyboard key to be pressed. Some key inputs, such as Shift or Tab will automatically add symbols or other formatting. Any other inputs will be output as they are with the first letter capitalized.

Optionally you can add a second parameter:

 

determines whether the key is light text on a dark key (default) or the inverse. This will likely never be used, and if a wiki would prefer dark on light, it should be changed as the default.

Example
Press and  at the same time. produces: Press and  at the same time.

Changing the default color
The default color for the keyboard is suitable for lighter-skinned wikis. To change the default settings so it fits for a light-skinned wiki, without having to use  each time, you can search for and change this section in the template:

Search for: ...and change  at the end of the line to.