@Override
    public void keyTyped(KeyEvent event) {
        if (!VALID_INPUTS.contains(event.getKeyChar())) {
            event.consume();
            Toolkit.getDefaultToolkit().beep();
        }
    }