instance.unregister();
getDefaultToolkit().unregister();
                public void keyPressed(KeyboardEvent event) {                    if (event.isControlDown() && event.getKeyChar() == 'z') {                        System.err                                .println("got ctrl-z, unregistering Toolkit.");                        //maybe this will help to debug the finite-sized text                        // area bug.                        instance.unregister();                        event.consume();                    }                }