char keyChar = event.getKeyChar(); boolean handled = false; if (handled) { event.consume(); }
    private void handleOtherKeys(KeyEvent event) {        if (event.isAltDown() || event.isMetaDown()) {            char keyChar = event.getKeyChar();            boolean handled = false;            if (handled) {                event.consume();            }        }    }