I know how to check a single button like for wasd but how can I make unity check if I am holding down W and Shift key
if(Input.GetKey(KeyCode.W)){
if(Input.GetKey(KeyCode.LeftShift)){
Debug.Log("Sprint");
} else {
Debug.Log("Run");
}
}
Something like this should work.
Or if you want a modifier for more keys you could let the shift key set a boolean to true and check that one.