Template:Key press/doc

Usage
Below are examples and possible usage of this template:

For Dota 2
To show mechanics or gameplay controls:
 * double ➜ double
 * shiftqueue ➜ shiftqueue
 * portraitcast / selfcast ➜ portraitcast / selfcast
 * hotkey ➜ hotkey
 * disablehelp / enablehelp ➜ disablehelp / enablehelp
 * Pings
 * ping ➜ ping
 * pingx ➜ pingx
 * Auto attack
 * autoattack/never / autoattack/standard / autoattack/always ➜ autoattack/never / autoattack/standard / autoattack/always

Other Key-based templates:
 * Autocast ➜
 * Toggle/on / Toggled/on ➜ /
 * Toggle/off / Toggled/off ➜ /

Keystroke Combinations
To illustrate keystroke combinations, just use extra parameters:
 * A ➜ A
 * Alt ➜ Alt
 * Ctrl ➜ Ctrl

As lower-case alphabetic characters a–z do not appear on most keyboards, they should not be used as parameters.

When you feed several key names to this template, it adds a "+" (or whatever the contents of the optional chain parameter) with no spaces around. This means it won't line wrap. But when you show key combinations for instance in a table that might cause items to be too wide. Instead manually build the key combination with spaces around the "+" so it can line wrap:
 * Ctrl + Alt + Del ➜ Ctrl + Alt + Del
 * Ctrl ➜ Ctrl
 * Alt1 ➜ Alt1

Mouse

 * mouseleft ➜ mouseleft
 * mouseright ➜ mouseright
 * mousemid ➜ mousemid

Combinations
 * Alt ➜ Alt

Wiki Markup Characters
Some wiki markup characters, like the pipe symbol, the semicolon and the equals sign, need to be entered using the,   and   templates or as an HTML entity  ,  ,   respectively:
 * pipe ➜ pipe
 * &amp;#124; ➜ &#124;
 * &#59; ➜ ;
 * &amp;#59; ➜ &#59;
 * &#61; ➜ =
 * &amp;#61; ➜ &#61;