keyDown(key) {
        if (key.length != 1) return;
        this.buffer += key;
        if (this.buffer.length > this.bufferSize) { this.buffer = this.buffer.slice(1); }
    }
@memberof Keyboard
Adds the keyy pressed to the buffer