Keyboard mapping

Some functions in OpenSpace require refering to keyboard inputs. This page describes the allowed names for the different keys that are accepted by those functions. There are two different parts to a key, the key itself and a modifier. The two tables below describe the constants that are allowed for each. To combine them, they should be concatenated with a +. For example SHIFT+A indicates a capital A whereas CTRL+ALT+0 means that the Control key and Alt keys are pressed, followed by the number key 0.

Modifier

Keyword

Shift

SHIFT

Control

CTRL

Alt

ALT

Super

SUPER

For the modifiers, “Super” is a generic name for the Windows key, for example.

Key

Keyword

Space

SPACE

'

APOSTROPHE

,

COMMA

-

MINUS

.

PERIOD

/

SLASH

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

8

9

9

;

SEMICOLON

=

EQUAL

A

A

B

B

C

C

D

D

E

E

F

F

G

G

H

H

I

I

J

J

K

K

L

L

M

M

N

N

O

O

P

P

Q

Q

R

R

S

S

T

T

U

U

V

V

W

W

X

X

Y

Y

Z

Z

[

LEFTBRACKET

\

BACKSLASH

]

RIGHTBRACKET

`

GRAVEACCENT

World1

WORLD1

World2

WORLD2

Esc

ESC

Enter

ENTER

Backspace

BACKSPACE

Insert

INSERT

Delete

DELETE

Right Arrow

RIGHT

Left Arrow

LEFT

Down Arrow

DOWN

Up Arrow

UP

Page Up

PAGEUP

Page Down

PAGEDOWN

Home

HOME

End

END

CapsLock

CAPS_LOCK

ScrollLock

SCROLL_LOCK

NumLock

NUM_LOCK

Print

PRINT_SCREEN

Pause

PAUSE

F1

F1

F2

F2

F3

F3

F4

F4

F5

F5

F6

F6

F7

F7

F8

F8

F9

F9

F10

F10

F11

F11

F12

F12

F13

F13

F14

F14

F15

F15

F16

F16

F17

F17

F18

F18

F19

F19

F20

F20

F21

F21

F22

F22

F23

F23

F24

F24

F25

F25

Keypad 0

KP_0

Keypad 1

KP_1

Keypad 2

KP_2

Keypad 3

KP_3

Keypad 4

KP_4

Keypad 5

KP_5

Keypad 6

KP_6

Keypad 7

KP_7

Keypad 8

KP_8

Keypad 9

KP_9

Keypad .

KP_DECIMAL

Keypad /

KP_DIVIDE

Keypad *

KP_MULTIPLY

Keypad -

KP_SUBTRACT

Keypad +

KP_ADD

Keypad Enter

KP_ENTER

Menu

MENU