public void keyPressed(KeyEvent e){
        if(e.getKeyCode() == KeyEvent.VK_D){
            setXDirection(1);
        }
        if(e.getKeyCode() == KeyEvent.VK_A){
            setXDirection(-1);
        }
        if(e.getKeyCode() == KeyEvent.VK_SPACE && Grounded){
            Jump = 10;
        }
    }