Top
PowerCOBOL V11.0 Reference
FUJITSU Software

Appendix B Key Code Constants

You can use the following constants to check the contents of the KeyCode argument of the KeyDown, KeyPress and KeyUp events.

Key

Constant

[0] to [9]

POW-KEY-0 to POW-KEY-9

[A] to [Z]

POW-KEY-A to POW-KEY-Z

[Alphanumerical Japanese syllabary - for 2 byte character code systems]

POW-KEY-KANA

[Alt]

POW-KEY-MENU

[Application Key]

POW-KEY-APPS

[Back Space]

POW-KEY-BACK

[Break]

POW-KEY-CANCEL

[Caps Lock]

POW-KEY-CAPITAL

[Clear]

POW-KEY-CLEAR

[Ctrl]

POW-KEY-CONTROL

[Del]

POW-KEY-DELETE

[Down arrow]

POW-KEY-DOWN

[End]

POW-KEY-END

[Enter]

POW-KEY-RETURN

[Esc]

POW-KEY-ESCAPE

[F1] to [F24]

POW-KEY-F1 to POW-KEY-F24

[Home]

POW-KEY-HOME

[Ins]

POW-KEY-INSERT

[Left arrow]

POW-KEY-LEFT

[Left Windows Key]

POW-KEY-LWIN

[Num Lock]

POW-KEY-NUMLOCK

[Numeric pad * ]

POW-KEY-MULTIPLY

[Numeric pad . ]

POW-KEY-DECIMAL

[Numeric pad / ]

POW-KEY-DIVIDE

[Numeric pad - ]

POW-KEY-SUBTRACT

[Numeric pad + ]

POW-KEY-ADD

[Numeric Pad 0] to

[Numeric Pad 9]

POW-KEY-NUMPAD0 to

POW-KEY-NUMPAD9

[Page Down]

POW-KEY-NEXT

[Page Up]

POW-KEY-PRIOR

[Pause]

POW-KEY-PAUSE

[Print Screen]

POW-KEY-SNAPSHOT

[Right arrow]

POW-KEY-RIGHT

[Right Windows Key]

POW-KEY-RWIN

[Scroll Lock]

POW-KEY-SCROLL

[Shift]

POW-KEY-SHIFT

[Space]

POW-KEY-SPACE

[Tab]

POW-KEY-TAB

[Up arrow]

POW-KEY-UP