Space-bar and Arrow buttons

I detected bug or i don’t know
Space is not detecting with arrows combination

void Update()
{
    float xPos = Input.GetAxisRaw("Horizontal");
    float yPos = Input.GetAxisRaw("Vertical");
    if (Input.GetKey(KeyCode.Space)) {
        print("asd");
    }
}

What the spacebar is doing

Well, first if (Input.GetKey(KeyCode.Space)) is being called every frame space is down. So when pressing space you’re adding force every frame. But If not, your setting velocity so I would think that would cancel the added force. Don’t know if this was necessarily an answer, but maybe some good intuition. Lemme know if this doesn’t make sense or help at all :).

I pressed diagonal directions
With Space

[172735-скриншот-18-12-2020-085653.png|172735]

Other Button
[172736-скриншот-18-12-2020-085900.png|172736]