private void Update()
{
if (Input.GetKeyDown(KeyCode.LeftShift)||Input.GetKeyDown(KeyCode.RightShift))
{
Debug.Log("Shift Pressed"); //Logs message to the Unity Console.
shiftOn = true;
}
if (Input.GetKeyUp(KeyCode.LeftShift) || Input.GetKeyUp(KeyCode.RightShift))
{
Debug.Log("Shift Released"); //Logs message to the Unity Console.
shiftOn = false;
}
}