public static void keyReleased(KeyEvent e) {
        key.clear(e.getKeyCode());
        if (!key.get(KeyEvent.VK_SPACE)) {
            setFire(false);
        }
        if (!key.get(KeyEvent.VK_LEFT)) {
            setX(0);
        }
        if (!key.get(KeyEvent.VK_RIGHT)) {
            setX(0);
        }
        if (!key.get(KeyEvent.VK_UP)) {
            setY(0);
        }
        if (!key.get(KeyEvent.VK_DOWN)) {
            setY(0);
        }
    }