Key Class

Key Class

This Package | All Packages

public class Key

Contains constants to use for processing keyboard input. Keys are identified by key values, which consist of a key code and a set of modifiers combined into a single integer value. The low order word of a key value contains the key code (which is the same as a Windows virtual key code). The high order word of a key value contains modifier bits for the SHIFT, CONTROL, and ALT keys.

Fields
Name Description
A Topic under construction.
ADD Topic under construction.
ALT Topic under construction.
APPS Topic under construction.
ATTN Topic under construction.
B Topic under construction.
BACK Topic under construction.
C Topic under construction.
CANCEL Topic under construction.
CAPITAL Topic under construction.
CLEAR Topic under construction.
CONTROL Topic under construction.
CONTROL_KEY Topic under construction.
CRSEL Topic under construction.
D Topic under construction.
D0 Topic under construction.
D1 Topic under construction.
D2 Topic under construction.
D3 Topic under construction.
D4 Topic under construction.
D5 Topic under construction.
D6 Topic under construction.
D7 Topic under construction.
D8 Topic under construction.
D9 Topic under construction.
DECIMAL Topic under construction.
DELETE Topic under construction.
DIVIDE Topic under construction.
DOWN Topic under construction.
E Topic under construction.
END Topic under construction.
EREOF Topic under construction.
ESCAPE Topic under construction.
EXECUTE Topic under construction.
EXSEL Topic under construction.
F Topic under construction.
F1 Topic under construction.
F10 Topic under construction.
F11 Topic under construction.
F12 Topic under construction.
F13 Topic under construction.
F14 Topic under construction.
F15 Topic under construction.
F16 Topic under construction.
F17 Topic under construction.
F18 Topic under construction.
F19 Topic under construction.
F2 Topic under construction.
F20 Topic under construction.
F21 Topic under construction.
F22 Topic under construction.
F23 Topic under construction.
F24 Topic under construction.
F3 Topic under construction.
F4 Topic under construction.
F5 Topic under construction.
F6 Topic under construction.
F7 Topic under construction.
F8 Topic under construction.
F9 Topic under construction.
G Topic under construction.
H Topic under construction.
HELP Topic under construction.
HOME Topic under construction.
I Topic under construction.
INSERT Topic under construction.
J Topic under construction.
K Topic under construction.
KEYCODE Bit mask to extract the key code from a key value.
L Topic under construction.
LBUTTON Key codes.
LCONTROL_KEY Topic under construction.
LEFT Topic under construction.
LMENU Topic under construction.
LSHIFT_KEY Topic under construction.
LWIN Topic under construction.
M Topic under construction.
MBUTTON Topic under construction.
MENU Topic under construction.
MODIFIERS Bit mask to extract the modifiers from a key value.
MULTIPLY Topic under construction.
N Topic under construction.
NEXT Topic under construction.
NONAME Topic under construction.
NUMLOCK Topic under construction.
NUMPAD0 Topic under construction.
NUMPAD1 Topic under construction.
NUMPAD2 Topic under construction.
NUMPAD3 Topic under construction.
NUMPAD4 Topic under construction.
NUMPAD5 Topic under construction.
NUMPAD6 Topic under construction.
NUMPAD7 Topic under construction.
NUMPAD8 Topic under construction.
NUMPAD9 Topic under construction.
O Topic under construction.
OEM_CLEAR Topic under construction.
P Topic under construction.
PA1 Topic under construction.
PAUSE Topic under construction.
PLAY Topic under construction.
PRINT Topic under construction.
PRIOR Topic under construction.
PROCESSKEY Topic under construction.
Q Topic under construction.
R Topic under construction.
RBUTTON Topic under construction.
RCONTROL_KEY Topic under construction.
RETURN Topic under construction.
RIGHT Topic under construction.
RMENU Topic under construction.
RSHIFT_KEY Topic under construction.
RWIN Topic under construction.
S Topic under construction.
SCROLL Topic under construction.
SELECT Topic under construction.
SEPARATOR Topic under construction.
SHIFT Key modifiers.
SHIFT_KEY Topic under construction.
SNAPSHOT Topic under construction.
SPACE Topic under construction.
SUBTRACT Topic under construction.
T Topic under construction.
TAB Topic under construction.
U Topic under construction.
UP Topic under construction.
V Topic under construction.
W Topic under construction.
X Topic under construction.
Y Topic under construction.
Z Topic under construction.
ZOOM Topic under construction.

Fields

Key.A

Syntax
public static final int A;
Description
Topic under construction.

Key.ADD

Syntax
public static final int ADD;
Description
Topic under construction.

Key.ALT

Syntax
public static final int ALT;
Description
Topic under construction.

Key.APPS

Syntax
public static final int APPS;
Description
Topic under construction.

Key.ATTN

Syntax
public static final int ATTN;
Description
Topic under construction.

Key.B

Syntax
public static final int B;
Description
Topic under construction.

Key.BACK

Syntax
public static final int BACK;
Description
Topic under construction.

Key.C

Syntax
public static final int C;
Description
Topic under construction.

Key.CANCEL

Syntax
public static final int CANCEL;
Description
Topic under construction.

Key.CAPITAL

Syntax
public static final int CAPITAL;
Description
Topic under construction.

Key.CLEAR

Syntax
public static final int CLEAR;
Description
Topic under construction.

Key.CONTROL

Syntax
public static final int CONTROL;
Description
Topic under construction.

Key.CONTROL_KEY

Syntax
public static final int CONTROL_KEY;
Description
Topic under construction.

Key.CRSEL

Syntax
public static final int CRSEL;
Description
Topic under construction.

Key.D

Syntax
public static final int D;
Description
Topic under construction.

Key.D0

Syntax
public static final int D0;
Description
Topic under construction.

Key.D1

Syntax
public static final int D1;
Description
Topic under construction.

Key.D2

Syntax
public static final int D2;
Description
Topic under construction.

Key.D3

Syntax
public static final int D3;
Description
Topic under construction.

Key.D4

Syntax
public static final int D4;
Description
Topic under construction.

Key.D5

Syntax
public static final int D5;
Description
Topic under construction.

Key.D6

Syntax
public static final int D6;
Description
Topic under construction.

Key.D7

Syntax
public static final int D7;
Description
Topic under construction.

Key.D8

Syntax
public static final int D8;
Description
Topic under construction.

Key.D9

Syntax
public static final int D9;
Description
Topic under construction.

Key.DECIMAL

Syntax
public static final int DECIMAL;
Description
Topic under construction.

Key.DELETE

Syntax
public static final int DELETE;
Description
Topic under construction.

Key.DIVIDE

Syntax
public static final int DIVIDE;
Description
Topic under construction.

Key.DOWN

Syntax
public static final int DOWN;
Description
Topic under construction.

Key.E

Syntax
public static final int E;
Description
Topic under construction.

Key.END

Syntax
public static final int END;
Description
Topic under construction.

Key.EREOF

Syntax
public static final int EREOF;
Description
Topic under construction.

Key.ESCAPE

Syntax
public static final int ESCAPE;
Description
Topic under construction.

Key.EXECUTE

Syntax
public static final int EXECUTE;
Description
Topic under construction.

Key.EXSEL

Syntax
public static final int EXSEL;
Description
Topic under construction.

Key.F

Syntax
public static final int F;
Description
Topic under construction.

Key.F1

Syntax
public static final int F1;
Description
Topic under construction.

Key.F10

Syntax
public static final int F10;
Description
Topic under construction.

Key.F11

Syntax
public static final int F11;
Description
Topic under construction.

Key.F12

Syntax
public static final int F12;
Description
Topic under construction.

Key.F13

Syntax
public static final int F13;
Description
Topic under construction.

Key.F14

Syntax
public static final int F14;
Description
Topic under construction.

Key.F15

Syntax
public static final int F15;
Description
Topic under construction.

Key.F16

Syntax
public static final int F16;
Description
Topic under construction.

Key.F17

Syntax
public static final int F17;
Description
Topic under construction.

Key.F18

Syntax
public static final int F18;
Description
Topic under construction.

Key.F19

Syntax
public static final int F19;
Description
Topic under construction.

Key.F2

Syntax
public static final int F2;
Description
Topic under construction.

Key.F20

Syntax
public static final int F20;
Description
Topic under construction.

Key.F21

Syntax
public static final int F21;
Description
Topic under construction.

Key.F22

Syntax
public static final int F22;
Description
Topic under construction.

Key.F23

Syntax
public static final int F23;
Description
Topic under construction.

Key.F24

Syntax
public static final int F24;
Description
Topic under construction.

Key.F3

Syntax
public static final int F3;
Description
Topic under construction.

Key.F4

Syntax
public static final int F4;
Description
Topic under construction.

Key.F5

Syntax
public static final int F5;
Description
Topic under construction.

Key.F6

Syntax
public static final int F6;
Description
Topic under construction.

Key.F7

Syntax
public static final int F7;
Description
Topic under construction.

Key.F8

Syntax
public static final int F8;
Description
Topic under construction.

Key.F9

Syntax
public static final int F9;
Description
Topic under construction.

Key.G

Syntax
public static final int G;
Description
Topic under construction.

Key.H

Syntax
public static final int H;
Description
Topic under construction.

Key.HELP

Syntax
public static final int HELP;
Description
Topic under construction.

Key.HOME

Syntax
public static final int HOME;
Description
Topic under construction.

Key.I

Syntax
public static final int I;
Description
Topic under construction.

Key.INSERT

Syntax
public static final int INSERT;
Description
Topic under construction.

Key.J

Syntax
public static final int J;
Description
Topic under construction.

Key.K

Syntax
public static final int K;
Description
Topic under construction.

Key.KEYCODE

Syntax
public static final int KEYCODE;
Description
Bit mask to extract the key code from a key value.

Key.L

Syntax
public static final int L;
Description
Topic under construction.

Key.LBUTTON

Syntax
public static final int LBUTTON;
Description
Key codes.

Key.LCONTROL_KEY

Syntax
public static final int LCONTROL_KEY;
Description
Topic under construction.

Key.LEFT

Syntax
public static final int LEFT;
Description
Topic under construction.

Key.LMENU

Syntax
public static final int LMENU;
Description
Topic under construction.

Key.LSHIFT_KEY

Syntax
public static final int LSHIFT_KEY;
Description
Topic under construction.

Key.LWIN

Syntax
public static final int LWIN;
Description
Topic under construction.

Key.M

Syntax
public static final int M;
Description
Topic under construction.

Key.MBUTTON

Syntax
public static final int MBUTTON;
Description
Topic under construction.

Key.MENU

Syntax
public static final int MENU;
Description
Topic under construction.

Key.MODIFIERS

Syntax
public static final int MODIFIERS;
Description
Bit mask to extract the modifiers from a key value.

Key.MULTIPLY

Syntax
public static final int MULTIPLY;
Description
Topic under construction.

Key.N

Syntax
public static final int N;
Description
Topic under construction.

Key.NEXT

Syntax
public static final int NEXT;
Description
Topic under construction.

Key.NONAME

Syntax
public static final int NONAME;
Description
Topic under construction.

Key.NUMLOCK

Syntax
public static final int NUMLOCK;
Description
Topic under construction.

Key.NUMPAD0

Syntax
public static final int NUMPAD0;
Description
Topic under construction.

Key.NUMPAD1

Syntax
public static final int NUMPAD1;
Description
Topic under construction.

Key.NUMPAD2

Syntax
public static final int NUMPAD2;
Description
Topic under construction.

Key.NUMPAD3

Syntax
public static final int NUMPAD3;
Description
Topic under construction.

Key.NUMPAD4

Syntax
public static final int NUMPAD4;
Description
Topic under construction.

Key.NUMPAD5

Syntax
public static final int NUMPAD5;
Description
Topic under construction.

Key.NUMPAD6

Syntax
public static final int NUMPAD6;
Description
Topic under construction.

Key.NUMPAD7

Syntax
public static final int NUMPAD7;
Description
Topic under construction.

Key.NUMPAD8

Syntax
public static final int NUMPAD8;
Description
Topic under construction.

Key.NUMPAD9

Syntax
public static final int NUMPAD9;
Description
Topic under construction.

Key.O

Syntax
public static final int O;
Description
Topic under construction.

Key.OEM_CLEAR

Syntax
public static final int OEM_CLEAR;
Description
Topic under construction.

Key.P

Syntax
public static final int P;
Description
Topic under construction.

Key.PA1

Syntax
public static final int PA1;
Description
Topic under construction.

Key.PAUSE

Syntax
public static final int PAUSE;
Description
Topic under construction.

Key.PLAY

Syntax
public static final int PLAY;
Description
Topic under construction.

Key.PRINT

Syntax
public static final int PRINT;
Description
Topic under construction.

Key.PRIOR

Syntax
public static final int PRIOR;
Description
Topic under construction.

Key.PROCESSKEY

Syntax
public static final int PROCESSKEY;
Description
Topic under construction.

Key.Q

Syntax
public static final int Q;
Description
Topic under construction.

Key.R

Syntax
public static final int R;
Description
Topic under construction.

Key.RBUTTON

Syntax
public static final int RBUTTON;
Description
Topic under construction.

Key.RCONTROL_KEY

Syntax
public static final int RCONTROL_KEY;
Description
Topic under construction.

Key.RETURN

Syntax
public static final int RETURN;
Description
Topic under construction.

Key.RIGHT

Syntax
public static final int RIGHT;
Description
Topic under construction.

Key.RMENU

Syntax
public static final int RMENU;
Description
Topic under construction.

Key.RSHIFT_KEY

Syntax
public static final int RSHIFT_KEY;
Description
Topic under construction.

Key.RWIN

Syntax
public static final int RWIN;
Description
Topic under construction.

Key.S

Syntax
public static final int S;
Description
Topic under construction.

Key.SCROLL

Syntax
public static final int SCROLL;
Description
Topic under construction.

Key.SELECT

Syntax
public static final int SELECT;
Description
Topic under construction.

Key.SEPARATOR

Syntax
public static final int SEPARATOR;
Description
Topic under construction.

Key.SHIFT

Syntax
public static final int SHIFT;
Description
Key modifiers.

Key.SHIFT_KEY

Syntax
public static final int SHIFT_KEY;
Description
Topic under construction.

Key.SNAPSHOT

Syntax
public static final int SNAPSHOT;
Description
Topic under construction.

Key.SPACE

Syntax
public static final int SPACE;
Description
Topic under construction.

Key.SUBTRACT

Syntax
public static final int SUBTRACT;
Description
Topic under construction.

Key.T

Syntax
public static final int T;
Description
Topic under construction.

Key.TAB

Syntax
public static final int TAB;
Description
Topic under construction.

Key.U

Syntax
public static final int U;
Description
Topic under construction.

Key.UP

Syntax
public static final int UP;
Description
Topic under construction.

Key.V

Syntax
public static final int V;
Description
Topic under construction.

Key.W

Syntax
public static final int W;
Description
Topic under construction.

Key.X

Syntax
public static final int X;
Description
Topic under construction.

Key.Y

Syntax
public static final int Y;
Description
Topic under construction.

Key.Z

Syntax
public static final int Z;
Description
Topic under construction.

Key.ZOOM

Syntax
public static final int ZOOM;
Description
Topic under construction.