changeBufferSize(size) {
        if (size == undefined || size < 20 || size > 100) return;
        if (this.bufferSize == size) return;
        var obj = new Keyboard(this.x, this.y, this.scope, size);
        this.delete();
        simulationArea.lastSelected = obj;
        return obj;
    }
@memberof Keyboard
this funcion sets the size of maximum input that can
be given to the keyboard at once before it starts sending data.