@Override
        public boolean dispatchKeyEvent(KeyEvent e) {
            if (e.getID() == KeyEvent.KEY_PRESSED) {

            } else if (e.getID() == KeyEvent.KEY_RELEASED) {
                if (e.isControlDown() && e.getKeyChar() != 'y' && e.getKeyCode() == 89) {
                    System.out.println("ctrl + y - redo");
                    controller.redo();
                }
                if (e.isControlDown() && e.getKeyChar() != 'z' && e.getKeyCode() == 90) {
                    System.out.println("ctrl + z - undo");
                    controller.undo();
                }
            } else if (e.getID() == KeyEvent.KEY_TYPED) {

            }
            return false;
        }