public void keyReleased(KeyEvent e) {
        if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
            debug.write("Right key released");
        }
        if (e.getKeyCode() == KeyEvent.VK_LEFT) {
            debug.write("Left key released");
        }
        if (e.getKeyCode() == KeyEvent.VK_DOWN) {
            debug.write("Down key released");
        }
        if (e.getKeyCode() == KeyEvent.VK_UP) {
            debug.write("Up key released");
        }
    }