diff --git a/lib/controls/KeyControls.js b/lib/controls/KeyControls.js index d2469bb..1266cc5 100644 --- a/lib/controls/KeyControls.js +++ b/lib/controls/KeyControls.js @@ -19,6 +19,21 @@ class KeyControls { return this.keys[32]; } + get ctrl() { + // Control + return this.keys[17]; + } + + get shift() { + // Shift + return this.keys[16]; + } + + get escape() { + // Escape + return this.keys[27]; + } + get x() { // Arrow Left or A (WASD) if (this.keys[37] || this.keys[65]) {