public enum KeyCode extends Enum<KeyCode>
| Enum Constant and Description | 
|---|
| AThe letter A. | 
| ACCEPTAccept or Commit function key. | 
| AGAINAgain (Sun keyboard). | 
| ALL_CANDIDATESAll Candidates function key. | 
| ALPHANUMERICAlphanumeric function key. | 
| ALTAlt (left or right). | 
| ALT_GRAPHAltGraph function key. | 
| AMPERSANDAmpersand ('&'). | 
| ASTERISKAsterisk ('*'). | 
| ATAt sign ('@'). | 
| BThe letter B. | 
| BACK_QUOTEBackquote ('`'). | 
| BACK_SLASHBackslash ('\\'). | 
| BACK_SPACEBackspace. | 
| BEGINBegin key. | 
| BRACELEFTLeft curly brace ('{'). | 
| BRACERIGHTRight curly brace ('}'). | 
| CThe letter C. | 
| CANCELCancel. | 
| CAPS_LOCKCaps Lock. | 
| CIRCUMFLEXCaret ('^'). | 
| CLEARClear. | 
| CLOSE_BRACKETRight bracket (']'). | 
| CODE_INPUTCode Input function key. | 
| COLONColon (':'). | 
| COMMAComma (','). | 
| COMPOSECompose function key. | 
| CONTEXT_MENUWindows Context Menu key. | 
| CONTROLControl (left or right). | 
| CONVERTConvert function key. | 
| COPYCopy (Sun keyboard). | 
| CUTCut (Sun keyboard). | 
| DThe letter D. | 
| DEAD_ABOVEDOTTODO. | 
| DEAD_ABOVERINGTODO. | 
| DEAD_ACUTETODO. | 
| DEAD_BREVETODO. | 
| DEAD_CARONTODO. | 
| DEAD_CEDILLATODO. | 
| DEAD_CIRCUMFLEXTODO. | 
| DEAD_DIAERESISTODO. | 
| DEAD_DOUBLEACUTETODO. | 
| DEAD_GRAVETODO. | 
| DEAD_IOTATODO. | 
| DEAD_MACRONTODO. | 
| DEAD_OGONEKTODO. | 
| DEAD_SEMIVOICED_SOUNDTODO. | 
| DEAD_TILDETODO. | 
| DEAD_VOICED_SOUNDTODO. | 
| DELETEDelete (non-numpad). | 
| DOLLARDollar sign ('$'). | 
| DOWNDown arrow (non-numpad). | 
| EThe letter E. | 
| ENDEnd. | 
| ENTEREnter (a.k.a. | 
| EQUALSEquals ('='). | 
| ESCAPEEscape. | 
| EURO_SIGNEuro sign. | 
| EXCLAMATION_MARKBang ('!'). | 
| FThe letter F. | 
| F1F1. | 
| F10F10. | 
| F11F11. | 
| F12F12. | 
| F13F13. | 
| F14F14. | 
| F15F15. | 
| F16F16. | 
| F17F17. | 
| F18F18 | 
| F19F19. | 
| F2F2. | 
| F20F20. | 
| F21F21. | 
| F22F22. | 
| F23F23. | 
| F24F24. | 
| F3F3. | 
| F4F4. | 
| F5F5. | 
| F6F6. | 
| F7F7. | 
| F8F8. | 
| F9F9. | 
| FINAL | 
| FINDFind (Sun keyboard). | 
| FULL_WIDTHFull-Width Characters function key. | 
| GThe letter G. | 
| GREATERGreater than ('>'). | 
| HThe letter H. | 
| HALF_WIDTHHalf-Width Characters function key. | 
| HELPHelp. | 
| HIRAGANAHiragana function key. | 
| HOMEHome. | 
| IThe letter I. | 
| INPUT_METHOD_ON_OFFInput method on/off key. | 
| INSERTInsert. | 
| INVERTED_EXCLAMATION_MARKInverted bang. | 
| JThe letter J. | 
| JAPANESE_HIRAGANAJapanese-Hiragana function key. | 
| JAPANESE_KATAKANAJapanese-Katakana function key. | 
| JAPANESE_ROMANJapanese-Roman function key. | 
| KThe letter K. | 
| KANA | 
| KANA_LOCKLocking Kana function key. | 
| KANJI | 
| KATAKANAKatakana function key. | 
| KP_DOWNDown arrow on numeric keypad. | 
| KP_LEFTLeft arrow on numeric keypad. | 
| KP_RIGHTRight arrow on numeric keypad. | 
| KP_UPUp arrow on numeric keypad. | 
| LThe letter L. | 
| LEFTLeft arrow (non-numpad). | 
| LEFT_PARENTHESISLeft parenthesis ('('). | 
| LESSLess than ('<'). | 
| MThe letter M. | 
| METAMeta. | 
| MINUSMinus ('-'). | 
| MODECHANGE | 
| NThe letter N. | 
| NONCONVERTDon't Convert function key. | 
| NUM_LOCKNum Lock. | 
| NUM0Zero ('0', non-numpad). | 
| NUM1One ('1', non-numpad). | 
| NUM2Two ('2', non-numpad). | 
| NUM3Three ('3', non-numpad). | 
| NUM4Four ('4', non-numpad). | 
| NUM5Five ('5', non-numpad). | 
| NUM6Six ('6', non-numpad). | 
| NUM7Seven ('7', non-numpad). | 
| NUM8Eight ('8', non-numpad). | 
| NUM9Nine ('9', non-numpad). | 
| NUMBER_SIGNPound sign ('#'). | 
| NUMPAD_0Zero ('0') on numeric keypad. | 
| NUMPAD_1One ('1') on numeric keypad. | 
| NUMPAD_2Two ('2') on numeric keypad. | 
| NUMPAD_3Three ('3') on numeric keypad. | 
| NUMPAD_4Four ('4') on numeric keypad. | 
| NUMPAD_5Five ('5') on numeric keypad. | 
| NUMPAD_6Six ('6') on numeric keypad. | 
| NUMPAD_7Seven ('7') on numeric keypad. | 
| NUMPAD_8Eight ('8') on numeric keypad. | 
| NUMPAD_9Nine ('9') on numeric keypad. | 
| NUMPAD_ASTERISKAsterisk ('*') on numeric keypad. | 
| NUMPAD_MINUSMinus ('-') on numeric keypad. | 
| NUMPAD_PERIODPeriod ('.') on numeric keypad. | 
| NUMPAD_PLUSPlus ('+') on numeric keypad. | 
| NUMPAD_SEPARATOR | 
| NUMPAD_SLASHSlash ('/') on numeric keypad. | 
| OThe letter O. | 
| OPEN_BRACKETLeft bracket ('['). | 
| PThe letter P. | 
| PAGE_DOWNPage Down. | 
| PAGE_UPPage Up. | 
| PASTEPaste (Sun keyboard). | 
| PAUSEPause. | 
| PERIODPeriod ('.'). | 
| PLUSPlus ('+'). | 
| PREVIOUS_CANDIDATEPrevious Candidate function key. | 
| PRINTSCREENPrint Screen. | 
| PROPSProps (Sun keyboard). | 
| QThe letter Q. | 
| QUOTESingle quote ('\''). | 
| QUOTEDBLDouble quote ('"'). | 
| RThe letter R. | 
| RIGHTRight arrow (non-numpad). | 
| RIGHT_PARENTHESISRight parenthesis (')'). | 
| ROMAN_CHARACTERSRoman Characters function key. | 
| SThe letter S. | 
| SCROLL_LOCKScroll Lock. | 
| SEMICOLONSemicolon (';'). | 
| SHIFTShift (left or right). | 
| SLASHForward slash ('/'). | 
| SPACESpace (' '). | 
| STOPStop (Sun keyboard). | 
| TThe letter T. | 
| TABTab. | 
| UThe letter U. | 
| UNDEFINEDUnknown code. | 
| UNDERSCOREUnderscore ('_'). | 
| UNDOUndo (Sun keyboard). | 
| UPUp arrow (non-numpad). | 
| VThe letter V. | 
| WThe letter W. | 
| WINDOWSWindows key (both left and right). | 
| XThe letter X. | 
| YThe letter Y. | 
| ZThe letter Z. | 
| Modifier and Type | Method and Description | 
|---|---|
| static KeyCode | get(int code)Gets the KeyCode corresponding to the given numeric code, or
  UNDEFINEDif no such code. | 
| static KeyCode | get(String name)Gets the KeyCode with the given name, or  UNDEFINEDif no such
 code. | 
| int | getCode()Gets the key's numeric code. | 
| static KeyCode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static KeyCode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final KeyCode ENTER
public static final KeyCode BACK_SPACE
public static final KeyCode TAB
public static final KeyCode CANCEL
public static final KeyCode CLEAR
public static final KeyCode SHIFT
public static final KeyCode CONTROL
public static final KeyCode ALT
public static final KeyCode PAUSE
public static final KeyCode CAPS_LOCK
public static final KeyCode ESCAPE
public static final KeyCode SPACE
public static final KeyCode PAGE_UP
public static final KeyCode PAGE_DOWN
public static final KeyCode END
public static final KeyCode HOME
public static final KeyCode LEFT
public static final KeyCode UP
public static final KeyCode RIGHT
public static final KeyCode DOWN
public static final KeyCode COMMA
public static final KeyCode MINUS
public static final KeyCode PERIOD
public static final KeyCode SLASH
public static final KeyCode NUM0
public static final KeyCode NUM1
public static final KeyCode NUM2
public static final KeyCode NUM3
public static final KeyCode NUM4
public static final KeyCode NUM5
public static final KeyCode NUM6
public static final KeyCode NUM7
public static final KeyCode NUM8
public static final KeyCode NUM9
public static final KeyCode SEMICOLON
public static final KeyCode EQUALS
public static final KeyCode A
public static final KeyCode B
public static final KeyCode C
public static final KeyCode D
public static final KeyCode E
public static final KeyCode F
public static final KeyCode G
public static final KeyCode H
public static final KeyCode I
public static final KeyCode J
public static final KeyCode K
public static final KeyCode L
public static final KeyCode M
public static final KeyCode N
public static final KeyCode O
public static final KeyCode P
public static final KeyCode Q
public static final KeyCode R
public static final KeyCode S
public static final KeyCode T
public static final KeyCode U
public static final KeyCode V
public static final KeyCode W
public static final KeyCode X
public static final KeyCode Y
public static final KeyCode Z
public static final KeyCode OPEN_BRACKET
public static final KeyCode BACK_SLASH
public static final KeyCode CLOSE_BRACKET
public static final KeyCode NUMPAD_0
public static final KeyCode NUMPAD_1
public static final KeyCode NUMPAD_2
public static final KeyCode NUMPAD_3
public static final KeyCode NUMPAD_4
public static final KeyCode NUMPAD_5
public static final KeyCode NUMPAD_6
public static final KeyCode NUMPAD_7
public static final KeyCode NUMPAD_8
public static final KeyCode NUMPAD_9
public static final KeyCode NUMPAD_ASTERISK
public static final KeyCode NUMPAD_PLUS
public static final KeyCode NUMPAD_SEPARATOR
public static final KeyCode NUMPAD_MINUS
public static final KeyCode NUMPAD_PERIOD
public static final KeyCode NUMPAD_SLASH
public static final KeyCode DELETE
public static final KeyCode NUM_LOCK
public static final KeyCode SCROLL_LOCK
public static final KeyCode F1
public static final KeyCode F2
public static final KeyCode F3
public static final KeyCode F4
public static final KeyCode F5
public static final KeyCode F6
public static final KeyCode F7
public static final KeyCode F8
public static final KeyCode F9
public static final KeyCode F10
public static final KeyCode F11
public static final KeyCode F12
public static final KeyCode F13
public static final KeyCode F14
public static final KeyCode F15
public static final KeyCode F16
public static final KeyCode F17
public static final KeyCode F18
public static final KeyCode F19
public static final KeyCode F20
public static final KeyCode F21
public static final KeyCode F22
public static final KeyCode F23
public static final KeyCode F24
public static final KeyCode PRINTSCREEN
public static final KeyCode INSERT
public static final KeyCode HELP
public static final KeyCode META
public static final KeyCode BACK_QUOTE
public static final KeyCode QUOTE
public static final KeyCode KP_UP
public static final KeyCode KP_DOWN
public static final KeyCode KP_LEFT
public static final KeyCode KP_RIGHT
public static final KeyCode DEAD_GRAVE
public static final KeyCode DEAD_ACUTE
public static final KeyCode DEAD_CIRCUMFLEX
public static final KeyCode DEAD_TILDE
public static final KeyCode DEAD_MACRON
public static final KeyCode DEAD_BREVE
public static final KeyCode DEAD_ABOVEDOT
public static final KeyCode DEAD_DIAERESIS
public static final KeyCode DEAD_ABOVERING
public static final KeyCode DEAD_DOUBLEACUTE
public static final KeyCode DEAD_CARON
public static final KeyCode DEAD_CEDILLA
public static final KeyCode DEAD_OGONEK
public static final KeyCode DEAD_IOTA
public static final KeyCode DEAD_VOICED_SOUND
public static final KeyCode DEAD_SEMIVOICED_SOUND
public static final KeyCode AMPERSAND
public static final KeyCode ASTERISK
public static final KeyCode QUOTEDBL
public static final KeyCode LESS
public static final KeyCode GREATER
public static final KeyCode BRACELEFT
public static final KeyCode BRACERIGHT
public static final KeyCode AT
public static final KeyCode COLON
public static final KeyCode CIRCUMFLEX
public static final KeyCode DOLLAR
public static final KeyCode EURO_SIGN
public static final KeyCode EXCLAMATION_MARK
public static final KeyCode INVERTED_EXCLAMATION_MARK
public static final KeyCode LEFT_PARENTHESIS
public static final KeyCode NUMBER_SIGN
public static final KeyCode PLUS
public static final KeyCode RIGHT_PARENTHESIS
public static final KeyCode UNDERSCORE
public static final KeyCode WINDOWS
public static final KeyCode CONTEXT_MENU
public static final KeyCode FINAL
public static final KeyCode CONVERT
public static final KeyCode NONCONVERT
public static final KeyCode ACCEPT
public static final KeyCode MODECHANGE
public static final KeyCode KANA
public static final KeyCode KANJI
public static final KeyCode ALPHANUMERIC
public static final KeyCode KATAKANA
public static final KeyCode HIRAGANA
public static final KeyCode FULL_WIDTH
public static final KeyCode HALF_WIDTH
public static final KeyCode ROMAN_CHARACTERS
public static final KeyCode ALL_CANDIDATES
public static final KeyCode PREVIOUS_CANDIDATE
public static final KeyCode CODE_INPUT
public static final KeyCode JAPANESE_KATAKANA
public static final KeyCode JAPANESE_HIRAGANA
public static final KeyCode JAPANESE_ROMAN
public static final KeyCode KANA_LOCK
public static final KeyCode INPUT_METHOD_ON_OFF
public static final KeyCode CUT
public static final KeyCode COPY
public static final KeyCode PASTE
public static final KeyCode UNDO
public static final KeyCode AGAIN
public static final KeyCode FIND
public static final KeyCode PROPS
public static final KeyCode STOP
public static final KeyCode COMPOSE
public static final KeyCode ALT_GRAPH
public static final KeyCode BEGIN
public static final KeyCode UNDEFINED
public static KeyCode[] values()
for (KeyCode c : KeyCode.values()) System.out.println(c);
public static KeyCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static KeyCode get(int code)
UNDEFINED if no such code.Copyright © 2015–2022 SciJava. All rights reserved.