Input.GetAxisRaw doesnt read Keyboardinput

Hello guys, thanks for helping in advance :wink: cant find a solution for a relative simple problem, about combining two arrow keys while “isRunning” is true. (Game is a TopDown 2D RPG)

while the Right Arrow Key is pressed, he doesnt recognize the Down Arrow Key anymore.
while the Left Arrow Key is pressed, he doesnt recognize the Up Arrow Key anymore.

vertInput stays at 0 in both cases.

it works while isRunning = false, and every other combination works even while it’s true.

here’s the code:

        float vertInput, horzInput;
        bool _isRunning, _isMoving;

    
        void Update()
        {
            DetectInput();
            Debug.Log(" horz " + horzInput + " vert " + vertInput);
        }
    
        void DetectInput()
        {
            vertInput = Input.GetAxisRaw("Vertical");
            horzInput = Input.GetAxisRaw("Horizontal");
            _isMoving = Input.GetButton("Vertical") || Input.GetButton("Horizontal");
            _isRunning = Input.GetButton("Jump");
        }

Use

if(Input.GetKey(KeyCode.RightArrow))
{
}