When pressing Shift... why is not working?

Hello Unity community,

I’m trying to Strafe while pressing down shift with the new Input System.

I have my Inputs working.

6833333--794603--upload_2021-2-12_19-39-7.png

But when I hold Shift, the movement doesn’t work.

I am using if triggered and the Debug tells me the Shift gets pressed, but the movement is not happening.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;

public class Player : MonoBehaviour
{
    public InputMaster controls;
    Vector2 move;
   


    void Awake()
    {
        controls = new InputMaster();

        controls.Player.Move.performed += ctx => move = ctx.ReadValue<Vector2>();
        controls.Player.Move.canceled += ctx => move = Vector2.zero;

       
    }

   

    void FixedUpdate()
    {
        Vector3 Move = new Vector3(0.0f, 0.0f, move.y) * Time.deltaTime;
        Vector3 Strafe = new Vector3(move.x, 0.0f, 0.0f) * Time.deltaTime;

        transform.Translate(Move, Space.World);


        if (controls.Player.Strafe.triggered)
        {


            transform.Translate(Strafe, Space.World);
            Debug.Log("Straffing");
        }





        //transform.Rotate(Vector3.up, 1f * Time.deltaTime);
    }

    void OnEnable()
    {
        controls.Player.Enable();
    }

    void OnDisable()
    {
        controls.Player.Disable();
    }


}

I was trying to do the same thing for a dash, but it wasn’t working for me either. The input action seemed to be registering, but it wasn’t executing the code.

If you’re using shift as a modifier, check out the InputSystem documentation, look for something like composite actions with one modifier. It works differently when you use shift as a standalone key or when you intend to use it as a modifier for an action.