- java.lang.Object
- 
- java.lang.Enum<KeyCode>
- 
- javafx.scene.input.KeyCode
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<KeyCode>
 
 public enum KeyCode extends Enum<KeyCode> Set of key codes forKeyEventobjects.- Since:
- JavaFX 2.0
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description AConstant for theAkey.ACCEPTConstant for the Accept or Commit function key.ADDConstant for theAddkey.AGAINConstant for theAgainkey.ALL_CANDIDATESConstant for the All Candidates function key.ALPHANUMERICConstant for the Alphanumeric function key.ALTConstant for theAltkey.ALT_GRAPHConstant for the AltGraph function key.AMPERSANDConstant for theAmpersandkey.ASTERISKConstant for theAsteriskkey.ATConstant for the "@" key.BConstant for theBkey.BACK_QUOTEConstant for theBack Quotekey.BACK_SLASHConstant for the back slash key, "\"BACK_SPACEConstant for theBackspacekey.BEGINConstant for the Begin key.BRACELEFTConstant for theLeft Bracekey.BRACERIGHTConstant for theRight Bracekey.CConstant for theCkey.CANCELConstant for theCancelkey.CAPSConstant for theCaps Lockkey.CHANNEL_DOWNConstant for theChannel Downkey.CHANNEL_UPConstant for theChannel Upkey.CIRCUMFLEXConstant for the "^" key.CLEARConstant for theClearkey.CLOSE_BRACKETConstant for the close bracket key, "]"CODE_INPUTConstant for the Code Input function key.COLONConstant for the ":" key.COLORED_KEY_0Constant for theColored Key 0key.COLORED_KEY_1Constant for theColored Key 1key.COLORED_KEY_2Constant for theColored Key 2key.COLORED_KEY_3Constant for theColored Key 3key.COMMAConstant for the comma key, ","COMMANDConstant for the AppleCommandkey.COMPOSEConstant for the input method on/off key.CONTEXT_MENUConstant for the Microsoft Windows Context Menu key.CONTROLConstant for theCtrlkey.CONVERTConstant for the Convert function key.COPYConstant for theCopykey.CUTConstant for theCutkey.DConstant for theDkey.DEAD_ABOVEDOTConstant for theDead Abovedotkey.DEAD_ABOVERINGConstant for theDead Aboveringkey.DEAD_ACUTEConstant for theDead Acutekey.DEAD_BREVEConstant for theDead Brevekey.DEAD_CARONConstant for theDead Caronkey.DEAD_CEDILLAConstant for theDead Cedillakey.DEAD_CIRCUMFLEXConstant for theDead Circumflexkey.DEAD_DIAERESISConstant for theDead Diaeresiskey.DEAD_DOUBLEACUTEConstant for theDead Doubleacutekey.DEAD_GRAVEConstant for theDead Gravekey.DEAD_IOTAConstant for theDead Iotakey.DEAD_MACRONConstant for theDead Macronkey.DEAD_OGONEKConstant for theDead Ogonekkey.DEAD_SEMIVOICED_SOUNDConstant for theDead Semivoiced Soundkey.DEAD_TILDEConstant for theDead Tildekey.DEAD_VOICED_SOUNDConstant for theDead Voiced Soundkey.DECIMALConstant for theDecimalkey.DELETEConstant for theDeletekey.DIGIT0Constant for the0key.DIGIT1Constant for the1key.DIGIT2Constant for the2key.DIGIT3Constant for the3key.DIGIT4Constant for the4key.DIGIT5Constant for the5key.DIGIT6Constant for the6key.DIGIT7Constant for the7key.DIGIT8Constant for the8key.DIGIT9Constant for the9key.DIVIDEConstant for theDividekey.DOLLARConstant for the "$" key.DOWNConstant for the non-numpad down arrow key.EConstant for theEkey.EJECT_TOGGLEConstant for theEjectkey.ENDConstant for theEndkey.ENTERConstant for theEnterkey.EQUALSConstant for the equals key, "="ESCAPEConstant for theEsckey.EURO_SIGNConstant for the Euro currency sign key.EXCLAMATION_MARKConstant for the "!" key.FConstant for theFkey.F1Constant for the F1 function key.F10Constant for the F10 function key.F11Constant for the F11 function key.F12Constant for the F12 function key.F13Constant for the F13 function key.F14Constant for the F14 function key.F15Constant for the F15 function key.F16Constant for the F16 function key.F17Constant for the F17 function key.F18Constant for the F18 function key.F19Constant for the F19 function key.F2Constant for the F2 function key.F20Constant for the F20 function key.F21Constant for the F21 function key.F22Constant for the F22 function key.F23Constant for the F23 function key.F24Constant for the F24 function key.F3Constant for the F3 function key.F4Constant for the F4 function key.F5Constant for the F5 function key.F6Constant for the F6 function key.F7Constant for the F7 function key.F8Constant for the F8 function key.F9Constant for the F9 function key.FAST_FWDConstant for theFast Forwardkey.FINALConstant for input method support on Asian Keyboards.FINDConstant for theFindkey.FULL_WIDTHConstant for the Full-Width Characters function key.GConstant for theGkey.GAME_AConstant for theGame Akey.GAME_BConstant for theGame Bkey.GAME_CConstant for theGame Ckey.GAME_DConstant for theGame Dkey.GREATERConstant for theGreaterkey.HConstant for theHkey.HALF_WIDTHConstant for the Half-Width Characters function key.HELPConstant for theHelpkey.HIRAGANAConstant for the Hiragana function key.HOMEConstant for theHomekey.IConstant for theIkey.INFOConstant for theInfokey.INPUT_METHOD_ON_OFFConstant for the input method on/off key.INSERTConstant for theInsertkey.INVERTED_EXCLAMATION_MARKConstant for the inverted exclamation mark key.JConstant for theJkey.JAPANESE_HIRAGANAConstant for the Japanese-Hiragana function key.JAPANESE_KATAKANAConstant for the Japanese-Katakana function key.JAPANESE_ROMANConstant for the Japanese-Roman function key.KConstant for theKkey.KANAConstant for theKanakey.KANA_LOCKConstant for the locking Kana function key.KANJIConstant for theKanjikey.KATAKANAConstant for the Katakana function key.KP_DOWNConstant for the numeric keypad down arrow key.KP_LEFTConstant for the numeric keypad left arrow key.KP_RIGHTConstant for the numeric keypad right arrow key.KP_UPConstant for the numeric keypad up arrow key.LConstant for theLkey.LEFTConstant for the non-numpad left arrow key.LEFT_PARENTHESISConstant for the "(" key.LESSConstant for theLesskey.MConstant for theMkey.METAConstant for theMetakey.MINUSConstant for the minus key, "-"MODECHANGEConstant for theMode Changekey.MULTIPLYConstant for theMultiplykey.MUTEConstant for theMutekey.NConstant for theNkey.NONCONVERTConstant for the Don't Convert function key.NUM_LOCKConstant for theNum Lockkey.NUMBER_SIGNConstant for the "#" key.NUMPAD0Constant for theNumpad 0key.NUMPAD1Constant for theNumpad 1key.NUMPAD2Constant for theNumpad 2key.NUMPAD3Constant for theNumpad 3key.NUMPAD4Constant for theNumpad 4key.NUMPAD5Constant for theNumpad 5key.NUMPAD6Constant for theNumpad 6key.NUMPAD7Constant for theNumpad 7key.NUMPAD8Constant for theNumpad 8key.NUMPAD9Constant for theNumpad 9key.OConstant for theOkey.OPEN_BRACKETConstant for the open bracket key, "["PConstant for thePkey.PAGE_DOWNConstant for thePage Downkey.PAGE_UPConstant for thePage Upkey.PASTEConstant for thePastekey.PAUSEConstant for thePausekey.PERIODConstant for the period key, "."PLAYConstant for thePlaykey.PLUSConstant for the "+" key.POUNDConstant for thePoundkey.POWERConstant for thePowerkey.PREVIOUS_CANDIDATEConstant for the Previous Candidate function key.PRINTSCREENConstant for thePrint Screenkey.PROPSConstant for thePropertieskey.QConstant for theQkey.QUOTEConstant for theQuotekey.QUOTEDBLConstant for theDouble Quotekey.RConstant for theRkey.RECORDConstant for theRecordkey.REWINDConstant for theRewindkey.RIGHTConstant for the non-numpad right arrow key.RIGHT_PARENTHESISConstant for the ")" key.ROMAN_CHARACTERSConstant for the Roman Characters function key.SConstant for theSkey.SCROLL_LOCKConstant for theScroll Lockkey.SEMICOLONConstant for the semicolon key, ";"SEPARATORConstant for the Numpad Separator key.SHIFTConstant for theShiftkey.SHORTCUTConstant for theShortcutkey.SLASHConstant for the forward slash key, "/"SOFTKEY_0Constant for theSoftkey 0key.SOFTKEY_1Constant for theSoftkey 1key.SOFTKEY_2Constant for theSoftkey 2key.SOFTKEY_3Constant for theSoftkey 3key.SOFTKEY_4Constant for theSoftkey 4key.SOFTKEY_5Constant for theSoftkey 5key.SOFTKEY_6Constant for theSoftkey 6key.SOFTKEY_7Constant for theSoftkey 7key.SOFTKEY_8Constant for theSoftkey 8key.SOFTKEY_9Constant for theSoftkey 9key.SPACEConstant for theSpacekey.STARConstant for theStarkey.STOPConstant for theStopkey.SUBTRACTConstant for theSubtractkey.TConstant for theTkey.TABConstant for theTabkey.TRACK_NEXTConstant for theNext Trackkey.TRACK_PREVConstant for thePrevious Trackkey.UConstant for theUkey.UNDEFINEDThis value is used to indicate that the keyCode is unknown.UNDERSCOREConstant for the "_" key.UNDOConstant for theUndokey.UPConstant for the non-numpad up arrow key.VConstant for theVkey.VOLUME_DOWNConstant for theVolume Downkey.VOLUME_UPConstant for theVolume Upkey.WConstant for theWkey.WINDOWSConstant for the Microsoft Windows "Windows" key.XConstant for theXkey.YConstant for theYkey.ZConstant for theZkey.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChar()Returns the character element of this key code, which is simply a mapping of the underlying platform code returned bygetCode().intgetCode()Returns the underlying platform code used to represent thecharacterin the key code.static KeyCodegetKeyCode(String name)Parses textual representation of a key.StringgetName()Gets name of this key code.booleanisArrowKey()Left, right, up, down keys (including the keypad arrows)booleanisDigitKey()All Digit keys (including the keypad digits)booleanisFunctionKey()Function keys like F1, F2, etc...booleanisKeypadKey()All keys on the keypadbooleanisLetterKey()All keys with lettersbooleanisMediaKey()All multimedia keys (channel up/down, volume control, etc...)booleanisModifierKey()Keys that could act as a modifierbooleanisNavigationKey()Navigation keys are arrow keys and Page Down, Page Up, Home, End (including keypad keys)booleanisWhitespaceKey()Space, tab and enterstatic KeyCodevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
ENTERpublic static final KeyCode ENTER Constant for theEnterkey.
 - 
BACK_SPACEpublic static final KeyCode BACK_SPACE Constant for theBackspacekey.
 - 
TABpublic static final KeyCode TAB Constant for theTabkey.
 - 
CANCELpublic static final KeyCode CANCEL Constant for theCancelkey.
 - 
CLEARpublic static final KeyCode CLEAR Constant for theClearkey.
 - 
SHIFTpublic static final KeyCode SHIFT Constant for theShiftkey.
 - 
CONTROLpublic static final KeyCode CONTROL Constant for theCtrlkey.
 - 
ALTpublic static final KeyCode ALT Constant for theAltkey.
 - 
PAUSEpublic static final KeyCode PAUSE Constant for thePausekey.
 - 
CAPSpublic static final KeyCode CAPS Constant for theCaps Lockkey.
 - 
ESCAPEpublic static final KeyCode ESCAPE Constant for theEsckey.
 - 
SPACEpublic static final KeyCode SPACE Constant for theSpacekey.
 - 
PAGE_UPpublic static final KeyCode PAGE_UP Constant for thePage Upkey.
 - 
PAGE_DOWNpublic static final KeyCode PAGE_DOWN Constant for thePage Downkey.
 - 
ENDpublic static final KeyCode END Constant for theEndkey.
 - 
HOMEpublic static final KeyCode HOME Constant for theHomekey.
 - 
LEFTpublic static final KeyCode LEFT Constant for the non-numpad left arrow key.
 - 
UPpublic static final KeyCode UP Constant for the non-numpad up arrow key.
 - 
RIGHTpublic static final KeyCode RIGHT Constant for the non-numpad right arrow key.
 - 
DOWNpublic static final KeyCode DOWN Constant for the non-numpad down arrow key.
 - 
COMMApublic static final KeyCode COMMA Constant for the comma key, ","
 - 
MINUSpublic static final KeyCode MINUS Constant for the minus key, "-"
 - 
PERIODpublic static final KeyCode PERIOD Constant for the period key, "."
 - 
SLASHpublic static final KeyCode SLASH Constant for the forward slash key, "/"
 - 
DIGIT0public static final KeyCode DIGIT0 Constant for the0key.
 - 
DIGIT1public static final KeyCode DIGIT1 Constant for the1key.
 - 
DIGIT2public static final KeyCode DIGIT2 Constant for the2key.
 - 
DIGIT3public static final KeyCode DIGIT3 Constant for the3key.
 - 
DIGIT4public static final KeyCode DIGIT4 Constant for the4key.
 - 
DIGIT5public static final KeyCode DIGIT5 Constant for the5key.
 - 
DIGIT6public static final KeyCode DIGIT6 Constant for the6key.
 - 
DIGIT7public static final KeyCode DIGIT7 Constant for the7key.
 - 
DIGIT8public static final KeyCode DIGIT8 Constant for the8key.
 - 
DIGIT9public static final KeyCode DIGIT9 Constant for the9key.
 - 
SEMICOLONpublic static final KeyCode SEMICOLON Constant for the semicolon key, ";"
 - 
EQUALSpublic static final KeyCode EQUALS Constant for the equals key, "="
 - 
Apublic static final KeyCode A Constant for theAkey.
 - 
Bpublic static final KeyCode B Constant for theBkey.
 - 
Cpublic static final KeyCode C Constant for theCkey.
 - 
Dpublic static final KeyCode D Constant for theDkey.
 - 
Epublic static final KeyCode E Constant for theEkey.
 - 
Fpublic static final KeyCode F Constant for theFkey.
 - 
Gpublic static final KeyCode G Constant for theGkey.
 - 
Hpublic static final KeyCode H Constant for theHkey.
 - 
Ipublic static final KeyCode I Constant for theIkey.
 - 
Jpublic static final KeyCode J Constant for theJkey.
 - 
Kpublic static final KeyCode K Constant for theKkey.
 - 
Lpublic static final KeyCode L Constant for theLkey.
 - 
Mpublic static final KeyCode M Constant for theMkey.
 - 
Npublic static final KeyCode N Constant for theNkey.
 - 
Opublic static final KeyCode O Constant for theOkey.
 - 
Ppublic static final KeyCode P Constant for thePkey.
 - 
Qpublic static final KeyCode Q Constant for theQkey.
 - 
Rpublic static final KeyCode R Constant for theRkey.
 - 
Spublic static final KeyCode S Constant for theSkey.
 - 
Tpublic static final KeyCode T Constant for theTkey.
 - 
Upublic static final KeyCode U Constant for theUkey.
 - 
Vpublic static final KeyCode V Constant for theVkey.
 - 
Wpublic static final KeyCode W Constant for theWkey.
 - 
Xpublic static final KeyCode X Constant for theXkey.
 - 
Ypublic static final KeyCode Y Constant for theYkey.
 - 
Zpublic static final KeyCode Z Constant for theZkey.
 - 
OPEN_BRACKETpublic static final KeyCode OPEN_BRACKET Constant for the open bracket key, "["
 - 
BACK_SLASHpublic static final KeyCode BACK_SLASH Constant for the back slash key, "\"
 - 
CLOSE_BRACKETpublic static final KeyCode CLOSE_BRACKET Constant for the close bracket key, "]"
 - 
NUMPAD0public static final KeyCode NUMPAD0 Constant for theNumpad 0key.
 - 
NUMPAD1public static final KeyCode NUMPAD1 Constant for theNumpad 1key.
 - 
NUMPAD2public static final KeyCode NUMPAD2 Constant for theNumpad 2key.
 - 
NUMPAD3public static final KeyCode NUMPAD3 Constant for theNumpad 3key.
 - 
NUMPAD4public static final KeyCode NUMPAD4 Constant for theNumpad 4key.
 - 
NUMPAD5public static final KeyCode NUMPAD5 Constant for theNumpad 5key.
 - 
NUMPAD6public static final KeyCode NUMPAD6 Constant for theNumpad 6key.
 - 
NUMPAD7public static final KeyCode NUMPAD7 Constant for theNumpad 7key.
 - 
NUMPAD8public static final KeyCode NUMPAD8 Constant for theNumpad 8key.
 - 
NUMPAD9public static final KeyCode NUMPAD9 Constant for theNumpad 9key.
 - 
MULTIPLYpublic static final KeyCode MULTIPLY Constant for theMultiplykey.
 - 
ADDpublic static final KeyCode ADD Constant for theAddkey.
 - 
SEPARATORpublic static final KeyCode SEPARATOR Constant for the Numpad Separator key.
 - 
SUBTRACTpublic static final KeyCode SUBTRACT Constant for theSubtractkey.
 - 
DECIMALpublic static final KeyCode DECIMAL Constant for theDecimalkey.
 - 
DIVIDEpublic static final KeyCode DIVIDE Constant for theDividekey.
 - 
DELETEpublic static final KeyCode DELETE Constant for theDeletekey.
 - 
NUM_LOCKpublic static final KeyCode NUM_LOCK Constant for theNum Lockkey.
 - 
SCROLL_LOCKpublic static final KeyCode SCROLL_LOCK Constant for theScroll Lockkey.
 - 
F1public static final KeyCode F1 Constant for the F1 function key.
 - 
F2public static final KeyCode F2 Constant for the F2 function key.
 - 
F3public static final KeyCode F3 Constant for the F3 function key.
 - 
F4public static final KeyCode F4 Constant for the F4 function key.
 - 
F5public static final KeyCode F5 Constant for the F5 function key.
 - 
F6public static final KeyCode F6 Constant for the F6 function key.
 - 
F7public static final KeyCode F7 Constant for the F7 function key.
 - 
F8public static final KeyCode F8 Constant for the F8 function key.
 - 
F9public static final KeyCode F9 Constant for the F9 function key.
 - 
F10public static final KeyCode F10 Constant for the F10 function key.
 - 
F11public static final KeyCode F11 Constant for the F11 function key.
 - 
F12public static final KeyCode F12 Constant for the F12 function key.
 - 
F13public static final KeyCode F13 Constant for the F13 function key.
 - 
F14public static final KeyCode F14 Constant for the F14 function key.
 - 
F15public static final KeyCode F15 Constant for the F15 function key.
 - 
F16public static final KeyCode F16 Constant for the F16 function key.
 - 
F17public static final KeyCode F17 Constant for the F17 function key.
 - 
F18public static final KeyCode F18 Constant for the F18 function key.
 - 
F19public static final KeyCode F19 Constant for the F19 function key.
 - 
F20public static final KeyCode F20 Constant for the F20 function key.
 - 
F21public static final KeyCode F21 Constant for the F21 function key.
 - 
F22public static final KeyCode F22 Constant for the F22 function key.
 - 
F23public static final KeyCode F23 Constant for the F23 function key.
 - 
F24public static final KeyCode F24 Constant for the F24 function key.
 - 
PRINTSCREENpublic static final KeyCode PRINTSCREEN Constant for thePrint Screenkey.
 - 
INSERTpublic static final KeyCode INSERT Constant for theInsertkey.
 - 
HELPpublic static final KeyCode HELP Constant for theHelpkey.
 - 
METApublic static final KeyCode META Constant for theMetakey.
 - 
BACK_QUOTEpublic static final KeyCode BACK_QUOTE Constant for theBack Quotekey.
 - 
QUOTEpublic static final KeyCode QUOTE Constant for theQuotekey.
 - 
KP_UPpublic static final KeyCode KP_UP Constant for the numeric keypad up arrow key.
 - 
KP_DOWNpublic static final KeyCode KP_DOWN Constant for the numeric keypad down arrow key.
 - 
KP_LEFTpublic static final KeyCode KP_LEFT Constant for the numeric keypad left arrow key.
 - 
KP_RIGHTpublic static final KeyCode KP_RIGHT Constant for the numeric keypad right arrow key.
 - 
DEAD_GRAVEpublic static final KeyCode DEAD_GRAVE Constant for theDead Gravekey.
 - 
DEAD_ACUTEpublic static final KeyCode DEAD_ACUTE Constant for theDead Acutekey.
 - 
DEAD_CIRCUMFLEXpublic static final KeyCode DEAD_CIRCUMFLEX Constant for theDead Circumflexkey.
 - 
DEAD_TILDEpublic static final KeyCode DEAD_TILDE Constant for theDead Tildekey.
 - 
DEAD_MACRONpublic static final KeyCode DEAD_MACRON Constant for theDead Macronkey.
 - 
DEAD_BREVEpublic static final KeyCode DEAD_BREVE Constant for theDead Brevekey.
 - 
DEAD_ABOVEDOTpublic static final KeyCode DEAD_ABOVEDOT Constant for theDead Abovedotkey.
 - 
DEAD_DIAERESISpublic static final KeyCode DEAD_DIAERESIS Constant for theDead Diaeresiskey.
 - 
DEAD_ABOVERINGpublic static final KeyCode DEAD_ABOVERING Constant for theDead Aboveringkey.
 - 
DEAD_DOUBLEACUTEpublic static final KeyCode DEAD_DOUBLEACUTE Constant for theDead Doubleacutekey.
 - 
DEAD_CARONpublic static final KeyCode DEAD_CARON Constant for theDead Caronkey.
 - 
DEAD_CEDILLApublic static final KeyCode DEAD_CEDILLA Constant for theDead Cedillakey.
 - 
DEAD_OGONEKpublic static final KeyCode DEAD_OGONEK Constant for theDead Ogonekkey.
 - 
DEAD_IOTApublic static final KeyCode DEAD_IOTA Constant for theDead Iotakey.
 - 
DEAD_VOICED_SOUNDpublic static final KeyCode DEAD_VOICED_SOUND Constant for theDead Voiced Soundkey.
 - 
DEAD_SEMIVOICED_SOUNDpublic static final KeyCode DEAD_SEMIVOICED_SOUND Constant for theDead Semivoiced Soundkey.
 - 
AMPERSANDpublic static final KeyCode AMPERSAND Constant for theAmpersandkey.
 - 
ASTERISKpublic static final KeyCode ASTERISK Constant for theAsteriskkey.
 - 
QUOTEDBLpublic static final KeyCode QUOTEDBL Constant for theDouble Quotekey.
 - 
LESSpublic static final KeyCode LESS Constant for theLesskey.
 - 
GREATERpublic static final KeyCode GREATER Constant for theGreaterkey.
 - 
BRACELEFTpublic static final KeyCode BRACELEFT Constant for theLeft Bracekey.
 - 
BRACERIGHTpublic static final KeyCode BRACERIGHT Constant for theRight Bracekey.
 - 
ATpublic static final KeyCode AT Constant for the "@" key.
 - 
COLONpublic static final KeyCode COLON Constant for the ":" key.
 - 
CIRCUMFLEXpublic static final KeyCode CIRCUMFLEX Constant for the "^" key.
 - 
DOLLARpublic static final KeyCode DOLLAR Constant for the "$" key.
 - 
EURO_SIGNpublic static final KeyCode EURO_SIGN Constant for the Euro currency sign key.
 - 
EXCLAMATION_MARKpublic static final KeyCode EXCLAMATION_MARK Constant for the "!" key.
 - 
INVERTED_EXCLAMATION_MARKpublic static final KeyCode INVERTED_EXCLAMATION_MARK Constant for the inverted exclamation mark key.
 - 
LEFT_PARENTHESISpublic static final KeyCode LEFT_PARENTHESIS Constant for the "(" key.
 - 
NUMBER_SIGNpublic static final KeyCode NUMBER_SIGN Constant for the "#" key.
 - 
PLUSpublic static final KeyCode PLUS Constant for the "+" key.
 - 
RIGHT_PARENTHESISpublic static final KeyCode RIGHT_PARENTHESIS Constant for the ")" key.
 - 
UNDERSCOREpublic static final KeyCode UNDERSCORE Constant for the "_" key.
 - 
WINDOWSpublic static final KeyCode WINDOWS Constant for the Microsoft Windows "Windows" key. It is used for both the left and right version of the key.
 - 
CONTEXT_MENUpublic static final KeyCode CONTEXT_MENU Constant for the Microsoft Windows Context Menu key.
 - 
FINALpublic static final KeyCode FINAL Constant for input method support on Asian Keyboards.
 - 
CONVERTpublic static final KeyCode CONVERT Constant for the Convert function key.
 - 
NONCONVERTpublic static final KeyCode NONCONVERT Constant for the Don't Convert function key.
 - 
ACCEPTpublic static final KeyCode ACCEPT Constant for the Accept or Commit function key.
 - 
MODECHANGEpublic static final KeyCode MODECHANGE Constant for theMode Changekey.
 - 
KANApublic static final KeyCode KANA Constant for theKanakey.
 - 
KANJIpublic static final KeyCode KANJI Constant for theKanjikey.
 - 
ALPHANUMERICpublic static final KeyCode ALPHANUMERIC Constant for the Alphanumeric function key.
 - 
KATAKANApublic static final KeyCode KATAKANA Constant for the Katakana function key.
 - 
HIRAGANApublic static final KeyCode HIRAGANA Constant for the Hiragana function key.
 - 
FULL_WIDTHpublic static final KeyCode FULL_WIDTH Constant for the Full-Width Characters function key.
 - 
HALF_WIDTHpublic static final KeyCode HALF_WIDTH Constant for the Half-Width Characters function key.
 - 
ROMAN_CHARACTERSpublic static final KeyCode ROMAN_CHARACTERS Constant for the Roman Characters function key.
 - 
ALL_CANDIDATESpublic static final KeyCode ALL_CANDIDATES Constant for the All Candidates function key.
 - 
PREVIOUS_CANDIDATEpublic static final KeyCode PREVIOUS_CANDIDATE Constant for the Previous Candidate function key.
 - 
CODE_INPUTpublic static final KeyCode CODE_INPUT Constant for the Code Input function key.
 - 
JAPANESE_KATAKANApublic static final KeyCode JAPANESE_KATAKANA Constant for the Japanese-Katakana function key. This key switches to a Japanese input method and selects its Katakana input mode.
 - 
JAPANESE_HIRAGANApublic static final KeyCode JAPANESE_HIRAGANA Constant for the Japanese-Hiragana function key. This key switches to a Japanese input method and selects its Hiragana input mode.
 - 
JAPANESE_ROMANpublic static final KeyCode JAPANESE_ROMAN Constant for the Japanese-Roman function key. This key switches to a Japanese input method and selects its Roman-Direct input mode.
 - 
KANA_LOCKpublic static final KeyCode KANA_LOCK Constant for the locking Kana function key. This key locks the keyboard into a Kana layout.
 - 
INPUT_METHOD_ON_OFFpublic static final KeyCode INPUT_METHOD_ON_OFF Constant for the input method on/off key.
 - 
CUTpublic static final KeyCode CUT Constant for theCutkey.
 - 
COPYpublic static final KeyCode COPY Constant for theCopykey.
 - 
PASTEpublic static final KeyCode PASTE Constant for thePastekey.
 - 
UNDOpublic static final KeyCode UNDO Constant for theUndokey.
 - 
AGAINpublic static final KeyCode AGAIN Constant for theAgainkey.
 - 
FINDpublic static final KeyCode FIND Constant for theFindkey.
 - 
PROPSpublic static final KeyCode PROPS Constant for thePropertieskey.
 - 
STOPpublic static final KeyCode STOP Constant for theStopkey.
 - 
COMPOSEpublic static final KeyCode COMPOSE Constant for the input method on/off key.
 - 
ALT_GRAPHpublic static final KeyCode ALT_GRAPH Constant for the AltGraph function key.
 - 
BEGINpublic static final KeyCode BEGIN Constant for the Begin key.
 - 
UNDEFINEDpublic static final KeyCode UNDEFINED This value is used to indicate that the keyCode is unknown. Key typed events do not have a keyCode value; this value is used instead.
 - 
SOFTKEY_0public static final KeyCode SOFTKEY_0 Constant for theSoftkey 0key.
 - 
SOFTKEY_1public static final KeyCode SOFTKEY_1 Constant for theSoftkey 1key.
 - 
SOFTKEY_2public static final KeyCode SOFTKEY_2 Constant for theSoftkey 2key.
 - 
SOFTKEY_3public static final KeyCode SOFTKEY_3 Constant for theSoftkey 3key.
 - 
SOFTKEY_4public static final KeyCode SOFTKEY_4 Constant for theSoftkey 4key.
 - 
SOFTKEY_5public static final KeyCode SOFTKEY_5 Constant for theSoftkey 5key.
 - 
SOFTKEY_6public static final KeyCode SOFTKEY_6 Constant for theSoftkey 6key.
 - 
SOFTKEY_7public static final KeyCode SOFTKEY_7 Constant for theSoftkey 7key.
 - 
SOFTKEY_8public static final KeyCode SOFTKEY_8 Constant for theSoftkey 8key.
 - 
SOFTKEY_9public static final KeyCode SOFTKEY_9 Constant for theSoftkey 9key.
 - 
GAME_Apublic static final KeyCode GAME_A Constant for theGame Akey.
 - 
GAME_Bpublic static final KeyCode GAME_B Constant for theGame Bkey.
 - 
GAME_Cpublic static final KeyCode GAME_C Constant for theGame Ckey.
 - 
GAME_Dpublic static final KeyCode GAME_D Constant for theGame Dkey.
 - 
STARpublic static final KeyCode STAR Constant for theStarkey.
 - 
POUNDpublic static final KeyCode POUND Constant for thePoundkey.
 - 
POWERpublic static final KeyCode POWER Constant for thePowerkey.
 - 
INFOpublic static final KeyCode INFO Constant for theInfokey.
 - 
COLORED_KEY_0public static final KeyCode COLORED_KEY_0 Constant for theColored Key 0key.
 - 
COLORED_KEY_1public static final KeyCode COLORED_KEY_1 Constant for theColored Key 1key.
 - 
COLORED_KEY_2public static final KeyCode COLORED_KEY_2 Constant for theColored Key 2key.
 - 
COLORED_KEY_3public static final KeyCode COLORED_KEY_3 Constant for theColored Key 3key.
 - 
EJECT_TOGGLEpublic static final KeyCode EJECT_TOGGLE Constant for theEjectkey.
 - 
PLAYpublic static final KeyCode PLAY Constant for thePlaykey.
 - 
RECORDpublic static final KeyCode RECORD Constant for theRecordkey.
 - 
FAST_FWDpublic static final KeyCode FAST_FWD Constant for theFast Forwardkey.
 - 
REWINDpublic static final KeyCode REWIND Constant for theRewindkey.
 - 
TRACK_PREVpublic static final KeyCode TRACK_PREV Constant for thePrevious Trackkey.
 - 
TRACK_NEXTpublic static final KeyCode TRACK_NEXT Constant for theNext Trackkey.
 - 
CHANNEL_UPpublic static final KeyCode CHANNEL_UP Constant for theChannel Upkey.
 - 
CHANNEL_DOWNpublic static final KeyCode CHANNEL_DOWN Constant for theChannel Downkey.
 - 
VOLUME_UPpublic static final KeyCode VOLUME_UP Constant for theVolume Upkey.
 - 
VOLUME_DOWNpublic static final KeyCode VOLUME_DOWN Constant for theVolume Downkey.
 - 
MUTEpublic static final KeyCode MUTE Constant for theMutekey.
 - 
COMMANDpublic static final KeyCode COMMAND Constant for the AppleCommandkey.- Since:
- JavaFX 2.1
 
 - 
SHORTCUTpublic static final KeyCode SHORTCUT Constant for theShortcutkey.
 
- 
 - 
Method Detail- 
valuespublic static KeyCode[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyCode c : KeyCode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static KeyCode valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
isFunctionKeypublic final boolean isFunctionKey() Function keys like F1, F2, etc...- Returns:
- true if this key code corresponds to a functional key
- Since:
- JavaFX 2.2
 
 - 
isNavigationKeypublic final boolean isNavigationKey() Navigation keys are arrow keys and Page Down, Page Up, Home, End (including keypad keys)- Returns:
- true if this key code corresponds to a navigation key
- Since:
- JavaFX 2.2
 
 - 
isArrowKeypublic final boolean isArrowKey() Left, right, up, down keys (including the keypad arrows)- Returns:
- true if this key code corresponds to an arrow key
- Since:
- JavaFX 2.2
 
 - 
isModifierKeypublic final boolean isModifierKey() Keys that could act as a modifier- Returns:
- true if this key code corresponds to a modifier key
- Since:
- JavaFX 2.2
 
 - 
isLetterKeypublic final boolean isLetterKey() All keys with letters- Returns:
- true if this key code corresponds to a letter key
- Since:
- JavaFX 2.2
 
 - 
isDigitKeypublic final boolean isDigitKey() All Digit keys (including the keypad digits)- Returns:
- true if this key code corresponds to a digit key
- Since:
- JavaFX 2.2
 
 - 
isKeypadKeypublic final boolean isKeypadKey() All keys on the keypad- Returns:
- true if this key code corresponds to a keypad key
- Since:
- JavaFX 2.2
 
 - 
isWhitespaceKeypublic final boolean isWhitespaceKey() Space, tab and enter- Returns:
- true if this key code corresponds to a whitespace key
- Since:
- JavaFX 2.2
 
 - 
isMediaKeypublic final boolean isMediaKey() All multimedia keys (channel up/down, volume control, etc...)- Returns:
- true if this key code corresponds to a media key
- Since:
- JavaFX 2.2
 
 - 
getNamepublic final String getName() Gets name of this key code.- Returns:
- Name of this key code
 
 - 
getCharpublic final String getChar() Returns the character element of this key code, which is simply a mapping of the underlying platform code returned bygetCode().- Returns:
- the character element of this key code
- Since:
- 9
 
 - 
getCodepublic final int getCode() Returns the underlying platform code used to represent thecharacterin the key code.- Returns:
- the underlying platform code used to represent the characterin the key code
- Since:
- 9
 
 
- 
 
-