Key EnumerationDelta Engine Documentation
All available Keyboard keys that can be used via the Keyboard class. View code on GitHub

Namespace: DeltaEngine.Input
Assembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public enum Key
Members

  Member nameValueDescription
None0
Backspace8
Tab9
Enter13
Pause19
CapsLock20
Escape27
Space32
PageUp33
PageDown34
End35
Home36
CursorLeft37
CursorUp38
CursorRight39
CursorDown40
PrintScreen44
Insert45
Delete46
D048
D149
D250
D351
D452
D553
D654
D755
D856
D957
A65
B66
C67
D68
E69
F70
G71
H72
I73
J74
K75
L76
M77
N78
O79
P80
Q81
R82
S83
T84
U85
V86
W87
X88
Y89
Z90
LeftWindows91
RightWindows92
WindowsKey94
NumPad096
NumPad197
NumPad298
NumPad399
NumPad4100
NumPad5101
NumPad6102
NumPad7103
NumPad8104
NumPad9105
Multiply106
Add107
Separator108
Subtract109
Decimal110
Divide111
F1112
F2113
F3114
F4115
F5116
F6117
F7118
F8119
F9120
F10121
F11122
F12123
NumLock144
Scroll145
Alt146
LeftShift147
RightShift148
LeftControl149
RightControl150
LeftAlt151
RightAlt152
Semicolon186
Plus187
Comma188
Minus189
Period190
Question191
Tilde192
ChatPadGreen202
ChatPadOrange203
OpenBrackets219
Pipe220
CloseBrackets221
Quotes222
Backslash226
NumberOfKeys227
Remarks

Tests: DeltaEngine.Input.Tests.KeyboardMessagesTests
Examples

23 unit tests call DeltaEngine.Input.Key
[Test]
public void CanCreateKeyboardMessageWithoutParameter()
{
    keyboardMessage = new KeyboardMessage();
    Assert.NotNull(keyboardMessage);
}
[Test]
public void PressedKeyShouldBeEnter()
{
    Assert.AreEqual(new[] { Key.Enter }, keyboardMessage.PressedKeys);
}
[TestFixtureTearDown]
public void Dispose()
{
    keyboard.Dispose();
}
See Also