@Override
    public void keyTyped(KeyEvent keyEvent) {
        if (this.isActive()) {
            char c = keyEvent.getKeyChar();
            String text = this.label.getText();
            if (c > 31 && c != KeyEvent.VK_DELETE && text.length() < this.getSize()) {
                this.label.setText(text + c);
            } else if (c == KeyEvent.VK_BACK_SPACE && text.length() > 0) {
                this.label.setText(text.substring(0, text.length() - 1));
            } else if (c == KeyEvent.VK_ENTER) {
                this.active = false;
            }
        }

    }