@Override
        public void mouseDragged(MouseEvent e) {
            if (isMouseDown) {
                int ny = e.getY();
                if (ny > mouseY) {
                    keys[KeyEvent.VK_DOWN] = true;
                    updateStatus();
                    keys[KeyEvent.VK_DOWN] = false;
                } else if (ny < mouseY) {
                    keys[KeyEvent.VK_UP] = true;
                    updateStatus();
                    keys[KeyEvent.VK_UP] = false;
                }
                mouseY = ny;
            }
        }