@Override
    public void keyReleased(KeyEvent e) {

        int KeyCode = e.getKeyCode();
        if (KeyCode == KeyEvent.VK_A || KeyCode == KeyEvent.VK_LEFT) {
            left = false;
        }
        if (KeyCode == KeyEvent.VK_D || KeyCode == KeyEvent.VK_RIGHT) {
            right = false;
        }

        if (KeyCode == KeyEvent.VK_CONTROL || KeyCode == KeyEvent.VK_SPACE || KeyCode == KeyEvent.VK_W || KeyCode == KeyEvent.VK_UP) {
            shoot = false;
        }

    }