Difference between revisions of "KeyConstant"

m (Fixed typo)
m (This is self explanatory but I don't know the exact wording for that)
 
(23 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
All the keys you can press. Note that some keys may not be available on your keyboard or system.
 
All the keys you can press. Note that some keys may not be available on your keyboard or system.
 +
 
== Constants ==
 
== Constants ==
 
+
{| class="wikitable"
{| border="1" cellpadding="5" cellspacing="0" style="background-color:#E9F5FF; border: 1px solid #83C0F0;"
+
! Key string
!style="border: 1px solid #83C0F0;"| Key string
+
! Description
!style="border: 1px solid #83C0F0;"| Description
+
! Note(s)
!style="border: 1px solid #83C0F0;"| Note(s)
+
|-
 +
!style="text-align: center;" colspan=3|Character keys
 +
|-
 +
|a
 +
|The A key
 +
|
 +
|-
 +
|b
 +
|The B key
 +
|
 +
|-
 +
|c
 +
|The C key
 +
|
 +
|-
 +
|d
 +
|The D key
 +
|
 +
|-
 +
|e
 +
|The E key
 +
|
 +
|-
 +
|f
 +
|The F key
 +
|
 +
|-
 +
|g
 +
|The G key
 +
|
 +
|-
 +
|h
 +
|The H key
 +
|
 +
|-
 +
|i
 +
|The I key
 +
|
 +
|-
 +
|j
 +
|The J key
 +
|
 +
|-
 +
|k
 +
|The K key
 +
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Character keys
+
|l
 +
|The L key
 +
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">a</tt>
+
|m
|style="border: 1px solid #83C0F0;"|The A key
+
|The M key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">b</tt>
+
|n
|style="border: 1px solid #83C0F0;"|The B key
+
|The N key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">c</tt>
+
|o
|style="border: 1px solid #83C0F0;"|The C key
+
|The O key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">d</tt>
+
|p
|style="border: 1px solid #83C0F0;"|The D key
+
|The P key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">e</tt>
+
|q
|style="border: 1px solid #83C0F0;"|The E key
+
|The Q key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f</tt>
+
|r
|style="border: 1px solid #83C0F0;"|The F key
+
|The R key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">g</tt>
+
|s
|style="border: 1px solid #83C0F0;"|The G key
+
|The S key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">h</tt>
+
|t
|style="border: 1px solid #83C0F0;"|The H key
+
|The T key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">i</tt>
+
|u
|style="border: 1px solid #83C0F0;"|The I key
+
|The U key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">j</tt>
+
|v
|style="border: 1px solid #83C0F0;"|The J key
+
|The V key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">k</tt>
+
|w
|style="border: 1px solid #83C0F0;"|The K key
+
|The W key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">l</tt>
+
|x
|style="border: 1px solid #83C0F0;"|The L key
+
|The X key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">m</tt>
+
|y
|style="border: 1px solid #83C0F0;"|The M key
+
|The Y key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">n</tt>
+
|z
|style="border: 1px solid #83C0F0;"|The N key
+
|The Z key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">o</tt>
+
|0
|style="border: 1px solid #83C0F0;"|The O key
+
|The zero key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">p</tt>
+
|1
|style="border: 1px solid #83C0F0;"|The P key
+
|The one key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">q</tt>
+
|2
|style="border: 1px solid #83C0F0;"|The Q key
+
|The two key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">r</tt>
+
|3
|style="border: 1px solid #83C0F0;"|The R key
+
|The three key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">s</tt>
+
|4
|style="border: 1px solid #83C0F0;"|The S key
+
|The four key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">t</tt>
+
|5
|style="border: 1px solid #83C0F0;"|The T key
+
|The five key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">u</tt>
+
|6
|style="border: 1px solid #83C0F0;"|The U key
+
|The six key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">v</tt>
+
|7
|style="border: 1px solid #83C0F0;"|The V key
+
|The seven key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">w</tt>
+
|8
|style="border: 1px solid #83C0F0;"|The W key
+
|The eight key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">x</tt>
+
|9
|style="border: 1px solid #83C0F0;"|The X key
+
|The nine key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">y</tt>
+
|space
|style="border: 1px solid #83C0F0;"|The Y key
+
|Space key
|style="border: 1px solid #83C0F0;"|
+
|In version [[0.9.2]] and earlier this is represented by the actual space character ' '.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">z</tt>
+
|!
|style="border: 1px solid #83C0F0;"|The Z key
+
|Exclamation mark key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">0</tt>
+
|"
|style="border: 1px solid #83C0F0;"|The zero key
+
|Double quote key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">1</tt>
+
|#
|style="border: 1px solid #83C0F0;"|The one key
+
|Hash key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">2</tt>
+
|$
|style="border: 1px solid #83C0F0;"|The two key
+
|Dollar key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">3</tt>
+
|&
|style="border: 1px solid #83C0F0;"|The three key
+
|Ampersand key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">4</tt>
+
|'
|style="border: 1px solid #83C0F0;"|The four key
+
|Single quote key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">5</tt>
+
|(
|style="border: 1px solid #83C0F0;"|The five key
+
|Left parenthesis key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">6</tt>
+
|)
|style="border: 1px solid #83C0F0;"|The six key
+
|Right parenthesis key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">7</tt>
+
|*
|style="border: 1px solid #83C0F0;"|The seven key
+
|Asterisk key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">8</tt>
+
|style=""|+
|style="border: 1px solid #83C0F0;"|The eight key
+
|Plus key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">9</tt>
+
|,
|style="border: 1px solid #83C0F0;"|The nine key
+
|Comma key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|(space)
+
|style=""|-
|style="border: 1px solid #83C0F0;"|Space key
+
|Hyphen-minus key
|style="border: 1px solid #83C0F0;"|replace (space) with the actual space character
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">!</tt>
+
|.
|style="border: 1px solid #83C0F0;"|Exclamation mark key  
+
|Full stop key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">"</tt>
+
|/
|style="border: 1px solid #83C0F0;"|Double quote key  
+
|Slash key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">#</tt>
+
|:
|style="border: 1px solid #83C0F0;"|Hash key  
+
|Colon key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">$</tt>
+
|;
|style="border: 1px solid #83C0F0;"|Dollar key  
+
|Semicolon key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">&</tt>
+
|<
|style="border: 1px solid #83C0F0;"|Ampersand key  
+
|Less-than key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">'</tt>
+
|=
|style="border: 1px solid #83C0F0;"|Single quote key  
+
|Equal key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">(</tt>
+
|>
|style="border: 1px solid #83C0F0;"|Left parenthesis key  
+
|Greater-than key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">)</tt>
+
|?
|style="border: 1px solid #83C0F0;"|Right parenthesis key  
+
|Question mark key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">*</tt>
+
|@
|style="border: 1px solid #83C0F0;"|Asterisk key  
+
|At sign key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">+</tt>
+
|[
|style="border: 1px solid #83C0F0;"|Plus key
+
|Left square bracket key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">,</tt>
+
|\
|style="border: 1px solid #83C0F0;"|Comma key
+
|Backslash key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">-</tt>
+
|]
|style="border: 1px solid #83C0F0;"|Hyphen-minus key
+
|Right square bracket key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">.</tt>
+
|^
|style="border: 1px solid #83C0F0;"|Full stop key
+
|Caret key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">/</tt>
+
|_
|style="border: 1px solid #83C0F0;"|Slash key
+
|Underscore key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">:</tt>
+
|`
|style="border: 1px solid #83C0F0;"|Colon key
+
|Grave accent key
|style="border: 1px solid #83C0F0;"|
+
|Also known as the "Back tick" key
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">;</tt>
+
!style="text-align: center;" colspan=3|Numpad keys
|style="border: 1px solid #83C0F0;"|Semicolon key
 
|style="border: 1px solid #83C0F0;"|
 
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;"><</tt>
+
|kp0
|style="border: 1px solid #83C0F0;"|Less-than key
+
|The numpad zero key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">=</tt>
+
|kp1
|style="border: 1px solid #83C0F0;"|Equal key
+
|The numpad one key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">></tt>
+
|kp2
|style="border: 1px solid #83C0F0;"|Greater-than key
+
|The numpad two key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">?</tt>
+
|kp3
|style="border: 1px solid #83C0F0;"|Question mark key
+
|The numpad three key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">@</tt>
+
|kp4
|style="border: 1px solid #83C0F0;"|At sign key
+
|The numpad four key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">[</tt>
+
|kp5
|style="border: 1px solid #83C0F0;"|Left square bracket key
+
|The numpad five key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">\</tt>
+
|kp6
|style="border: 1px solid #83C0F0;"|Backslash key
+
|The numpad six key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">]</tt>
+
|kp7
|style="border: 1px solid #83C0F0;"|Right square bracket key
+
|The numpad seven key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">^</tt>
+
|kp8
|style="border: 1px solid #83C0F0;"|Caret key
+
|The numpad eight key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">_</tt>
+
|kp9
|style="border: 1px solid #83C0F0;"|Underscore key
+
|The numpad nine key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">`</tt>
+
|kp.
|style="border: 1px solid #83C0F0;"|Grave accent key
+
|The numpad decimal point key
|style="border: 1px solid #83C0F0;"|Also known as the "Back tick" key
+
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Numpad keys
+
|kp,
 +
|The numpad comma key
 +
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp0</tt>
+
|kp/
|style="border: 1px solid #83C0F0;"|The numpad zero key
+
|The numpad division key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp1</tt>
+
|kp*
|style="border: 1px solid #83C0F0;"|The numpad one key
+
|The numpad multiplication key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp2</tt>
+
|kp-
|style="border: 1px solid #83C0F0;"|The numpad two key
+
|The numpad substraction key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp3</tt>
+
|kp+
|style="border: 1px solid #83C0F0;"|The numpad three key
+
|The numpad addition key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp4</tt>
+
|kpenter
|style="border: 1px solid #83C0F0;"|The numpad four key
+
|The numpad enter key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp5</tt>
+
|kp=
|style="border: 1px solid #83C0F0;"|The numpad five key
+
|The numpad equals key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp6</tt>
+
!style="text-align: center;" colspan=3|Navigation keys
|style="border: 1px solid #83C0F0;"|The numpad six key
 
|style="border: 1px solid #83C0F0;"|
 
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp7</tt>
+
|up
|style="border: 1px solid #83C0F0;"|The numpad seven key
+
|Up arrow key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp8</tt>
+
|down
|style="border: 1px solid #83C0F0;"|The numpad eight key
+
|Down arrow key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp9</tt>
+
|right
|style="border: 1px solid #83C0F0;"|The numpad nine key
+
|Right arrow key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp.</tt>
+
|left
|style="border: 1px solid #83C0F0;"|The numpad decimal point key
+
|Left arrow key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp/</tt>
+
|home
|style="border: 1px solid #83C0F0;"|The numpad division key
+
|Home key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp*</tt>
+
|end
|style="border: 1px solid #83C0F0;"|The numpad multiplication key
+
|End key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp-</tt>
+
|pageup
|style="border: 1px solid #83C0F0;"|The numpad substraction key
+
|Page up key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp+</tt>
+
|pagedown
|style="border: 1px solid #83C0F0;"|The numpad addition key
+
|Page down key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kpenter</tt>
+
!style="text-align: center;" colspan=3|Editing keys
|style="border: 1px solid #83C0F0;"|The numpad enter key
 
|style="border: 1px solid #83C0F0;"|
 
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">kp=</tt>
+
|insert
|style="border: 1px solid #83C0F0;"|The numpad equals key
+
|Insert key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Navigation keys
+
|backspace
 +
|Backspace key
 +
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">up</tt>
+
|tab
|style="border: 1px solid #83C0F0;"|Up cursor key  
+
|Tab key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">down</tt>
+
|clear
|style="border: 1px solid #83C0F0;"|Down cursor key  
+
|Clear key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">right</tt>
+
|return
|style="border: 1px solid #83C0F0;"|Right cursor key  
+
|Return key
|style="border: 1px solid #83C0F0;"|
+
|Also known as the Enter key
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">left</tt>
+
|delete
|style="border: 1px solid #83C0F0;"|Left cursor key  
+
|Delete key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">home</tt>
+
!style="text-align: center;" colspan=3|Function keys
|style="border: 1px solid #83C0F0;"|Home key
 
|style="border: 1px solid #83C0F0;"|
 
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">end</tt>
+
|f1
|style="border: 1px solid #83C0F0;"|End key
+
|The 1st function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">pageup</tt>
+
|f2
|style="border: 1px solid #83C0F0;"|Page up key
+
|The 2nd function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">pagedown</tt>
+
|f3
|style="border: 1px solid #83C0F0;"|Page down key
+
|The 3rd function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Editing keys
+
|f4
 +
|The 4th function key
 +
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">insert</tt>
+
|f5
|style="border: 1px solid #83C0F0;"|Insert key
+
|The 5th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">backspace</tt>
+
|f6
|style="border: 1px solid #83C0F0;"|Backspace key  
+
|The 6th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">tab</tt>
+
|f7
|style="border: 1px solid #83C0F0;"|Tab key  
+
|The 7th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">clear</tt>
+
|f8
|style="border: 1px solid #83C0F0;"|Clear key  
+
|The 8th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">return</tt>
+
|f9
|style="border: 1px solid #83C0F0;"|Return key
+
|The 9th function key
|style="border: 1px solid #83C0F0;"|Also known as the Enter key
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">delete</tt>
+
|f10
|style="border: 1px solid #83C0F0;"|Delete key
+
|The 10th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Function keys
+
|f11
 +
|The 11th function key
 +
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f1</tt>
+
|f12
|style="border: 1px solid #83C0F0;"|The 1st function key
+
|The 12th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f2</tt>
+
|f13
|style="border: 1px solid #83C0F0;"|The 2nd function key
+
|The 13th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f3</tt>
+
|f14
|style="border: 1px solid #83C0F0;"|The 3rd function key
+
|The 14th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f4</tt>
+
|f15
|style="border: 1px solid #83C0F0;"|The 4th function key
+
|The 15th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f5</tt>
+
|f16
|style="border: 1px solid #83C0F0;"|The 5th function key
+
|The 16th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f6</tt>
+
|f17
|style="border: 1px solid #83C0F0;"|The 6th function key
+
|The 17th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f7</tt>
+
|f18
|style="border: 1px solid #83C0F0;"|The 7th function key
+
|The 18th function key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f8</tt>
+
!style="text-align: center;" colspan=3|Modifier keys
|style="border: 1px solid #83C0F0;"|The 8th function key
 
|style="border: 1px solid #83C0F0;"|
 
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f9</tt>
+
|numlock
|style="border: 1px solid #83C0F0;"|The 9th function key
+
|Num-lock key
|style="border: 1px solid #83C0F0;"|
+
|Clear on Mac keyboards.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f10</tt>
+
|capslock
|style="border: 1px solid #83C0F0;"|The 10th function key
+
|Caps-lock key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f11</tt>
+
|scrolllock
|style="border: 1px solid #83C0F0;"|The 11th function key
+
|Scroll-lock key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f12</tt>
+
|rshift
|style="border: 1px solid #83C0F0;"|The 12th function key
+
|Right shift key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f13</tt>
+
|lshift
|style="border: 1px solid #83C0F0;"|The 13th function key
+
|Left shift key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f14</tt>
+
|rctrl
|style="border: 1px solid #83C0F0;"|The 14th function key
+
|Right control key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">f15</tt>
+
|lctrl
|style="border: 1px solid #83C0F0;"|The 15th function key
+
|Left control key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Modifier keys
+
|ralt
 +
|Right alt key
 +
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">numlock</tt>
+
|lalt
|style="border: 1px solid #83C0F0;"|Num-lock key
+
|Left alt key  
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">capslock</tt>
+
|rgui
|style="border: 1px solid #83C0F0;"|Caps-lock key
+
|Right gui key
|style="border: 1px solid #83C0F0;"|
+
|Command key in OS X, Windows key in Windows.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">scrollock</tt>
+
|lgui
|style="border: 1px solid #83C0F0;"|Scroll-lock key
+
|Left gui key
|style="border: 1px solid #83C0F0;"|
+
|Command key in OS X, Windows key in Windows.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">rshift</tt>
+
|mode
|style="border: 1px solid #83C0F0;"|Right shift key  
+
|Mode key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">lshift</tt>
+
!style="text-align: center;" colspan=3|Application keys
|style="border: 1px solid #83C0F0;"|Left shift key
 
|style="border: 1px solid #83C0F0;"|
 
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">rctrl</tt>
+
|www
|style="border: 1px solid #83C0F0;"|Right control key  
+
|WWW key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">lctrl</tt>
+
|mail
|style="border: 1px solid #83C0F0;"|Left control key  
+
|Mail key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">ralt</tt>
+
|calculator
|style="border: 1px solid #83C0F0;"|Right alt key  
+
|Calculator key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">lalt</tt>
+
|computer
|style="border: 1px solid #83C0F0;"|Left alt key  
+
|Computer key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">rmeta</tt>
+
|appsearch
|style="border: 1px solid #83C0F0;"|Right meta key
+
|Application search key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">lmeta</tt>
+
|apphome
|style="border: 1px solid #83C0F0;"|Left meta key
+
|Application home key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">lsuper</tt>
+
|appback
|style="border: 1px solid #83C0F0;"|Left super key
+
|Application back key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">rsuper</tt>
+
|appforward
|style="border: 1px solid #83C0F0;"|Right super key
+
|Application forward key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">mode</tt>
+
|apprefresh
|style="border: 1px solid #83C0F0;"|Mode key
+
|Application refresh key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">compose</tt>
+
|appbookmarks
|style="border: 1px solid #83C0F0;"|Compose key
+
|Application bookmarks key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
!style="border: 1px solid #83C0F0;" colspan=3|Miscellaneous keys
+
!style="text-align: center;" colspan=3|Miscellaneous keys
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">pause</tt>
+
|pause
|style="border: 1px solid #83C0F0;"|Pause key  
+
|Pause key  
|style="border: 1px solid #83C0F0;"|
+
|Sends a key release immediately on some platforms, even if held down.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">escape</tt>
+
|escape
|style="border: 1px solid #83C0F0;"|Escape key  
+
|Escape key  
|style="border: 1px solid #83C0F0;"|
+
|On Android, this is the on screen back button.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">help</tt>
+
|help
|style="border: 1px solid #83C0F0;"|Help key
+
|Help key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">print</tt>
+
|printscreen
|style="border: 1px solid #83C0F0;"|Print key
+
|Printscreen key
|style="border: 1px solid #83C0F0;"|
+
|Sends a key release immediately on Windows, even if held down.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">sysreq</tt>
+
|sysreq
|style="border: 1px solid #83C0F0;"|System request key
+
|System request key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">break</tt>
+
|menu
|style="border: 1px solid #83C0F0;"|Break key
+
|Menu key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">menu</tt>
+
|application
|style="border: 1px solid #83C0F0;"|Menu key
+
|Application key
|style="border: 1px solid #83C0F0;"|
+
|Windows contextual menu, compose key.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">power</tt>
+
|power
|style="border: 1px solid #83C0F0;"|Power key
+
|Power key
|style="border: 1px solid #83C0F0;"|
+
|
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">euro</tt>
+
|currencyunit
|style="border: 1px solid #83C0F0;"|Euro (&euro;) key
+
|Currency unit key
|style="border: 1px solid #83C0F0;"|
+
|e.g. the Euro (&euro;) key.
 
|-
 
|-
|style="border: 1px solid #83C0F0;"|<tt style="font-size: large;">undo</tt>
+
|undo
|style="border: 1px solid #83C0F0;"|Undo key
+
|Undo key
|style="border: 1px solid #83C0F0;"|
+
|
 
|}
 
|}
  
 +
== Examples ==
 +
Note how [[love.keypressed]] gives direct key presses, whereas [[love.textinput]] gives the text that key combinations produce.
 +
 +
Let's take the "#" symbol as an example (assuming a U.S. keyboard):
 +
<source lang="lua">
 +
function love.keypressed(key)
 +
    print(key)
 +
end
 +
--> shift
 +
--> 3
 +
 +
function love.textinput(text)
 +
    print(text)
 +
end
 +
--> #
 +
</source>
  
 
== See Also ==
 
== See Also ==
 
* [[parent::love.keyboard]]
 
* [[parent::love.keyboard]]
 +
* [[love.keypressed]]
 +
* [[love.keyreleased]]
 +
* [[love.keyboard.isDown]]
 +
* [[love.keyboard.getScancodeFromKey]]
 +
* [[love.keyboard.getKeyFromScancode]]
 
[[Category:Enums]]
 
[[Category:Enums]]
 
{{#set:Description=All the keys you can press.}}
 
{{#set:Description=All the keys you can press.}}
 +
{{#set:Since=000}}
 +
 +
== Other Languages ==
 +
{{i18n|KeyConstant}}

Latest revision as of 00:18, 23 January 2023

All the keys you can press. Note that some keys may not be available on your keyboard or system.

Constants

Key string Description Note(s)
Character keys
a The A key
b The B key
c The C key
d The D key
e The E key
f The F key
g The G key
h The H key
i The I key
j The J key
k The K key
l The L key
m The M key
n The N key
o The O key
p The P key
q The Q key
r The R key
s The S key
t The T key
u The U key
v The V key
w The W key
x The X key
y The Y key
z The Z key
0 The zero key
1 The one key
2 The two key
3 The three key
4 The four key
5 The five key
6 The six key
7 The seven key
8 The eight key
9 The nine key
space Space key In version 0.9.2 and earlier this is represented by the actual space character ' '.
! Exclamation mark key
" Double quote key
# Hash key
$ Dollar key
& Ampersand key
' Single quote key
( Left parenthesis key
) Right parenthesis key
* Asterisk key
+ Plus key
, Comma key
- Hyphen-minus key
. Full stop key
/ Slash key
: Colon key
; Semicolon key
< Less-than key
= Equal key
> Greater-than key
? Question mark key
@ At sign key
[ Left square bracket key
\ Backslash key
] Right square bracket key
^ Caret key
_ Underscore key
` Grave accent key Also known as the "Back tick" key
Numpad keys
kp0 The numpad zero key
kp1 The numpad one key
kp2 The numpad two key
kp3 The numpad three key
kp4 The numpad four key
kp5 The numpad five key
kp6 The numpad six key
kp7 The numpad seven key
kp8 The numpad eight key
kp9 The numpad nine key
kp. The numpad decimal point key
kp, The numpad comma key
kp/ The numpad division key
kp* The numpad multiplication key
kp- The numpad substraction key
kp+ The numpad addition key
kpenter The numpad enter key
kp= The numpad equals key
Navigation keys
up Up arrow key
down Down arrow key
right Right arrow key
left Left arrow key
home Home key
end End key
pageup Page up key
pagedown Page down key
Editing keys
insert Insert key
backspace Backspace key
tab Tab key
clear Clear key
return Return key Also known as the Enter key
delete Delete key
Function keys
f1 The 1st function key
f2 The 2nd function key
f3 The 3rd function key
f4 The 4th function key
f5 The 5th function key
f6 The 6th function key
f7 The 7th function key
f8 The 8th function key
f9 The 9th function key
f10 The 10th function key
f11 The 11th function key
f12 The 12th function key
f13 The 13th function key
f14 The 14th function key
f15 The 15th function key
f16 The 16th function key
f17 The 17th function key
f18 The 18th function key
Modifier keys
numlock Num-lock key Clear on Mac keyboards.
capslock Caps-lock key
scrolllock Scroll-lock key
rshift Right shift key
lshift Left shift key
rctrl Right control key
lctrl Left control key
ralt Right alt key
lalt Left alt key
rgui Right gui key Command key in OS X, Windows key in Windows.
lgui Left gui key Command key in OS X, Windows key in Windows.
mode Mode key
Application keys
www WWW key
mail Mail key
calculator Calculator key
computer Computer key
appsearch Application search key
apphome Application home key
appback Application back key
appforward Application forward key
apprefresh Application refresh key
appbookmarks Application bookmarks key
Miscellaneous keys
pause Pause key Sends a key release immediately on some platforms, even if held down.
escape Escape key On Android, this is the on screen back button.
help Help key
printscreen Printscreen key Sends a key release immediately on Windows, even if held down.
sysreq System request key
menu Menu key
application Application key Windows contextual menu, compose key.
power Power key
currencyunit Currency unit key e.g. the Euro (€) key.
undo Undo key

Examples

Note how love.keypressed gives direct key presses, whereas love.textinput gives the text that key combinations produce.

Let's take the "#" symbol as an example (assuming a U.S. keyboard):

function love.keypressed(key)
    print(key)
end
--> shift
--> 3

function love.textinput(text)
    print(text)
end
--> #

See Also


Other Languages