How do I detact certain combination of keys?

For example, I’m making Dead cell-like fall attack. Press S + Space button to fall attack. but Space + S won’t achieve the same effect. So how can I do this?

That’s not something I think is really inherent to the input system. It’s more like you’d define a duck action with a key binding to S and an attack action with a key binding to Space. Then you’d manage the logic of what happens when both of those actions are occurring in some player class.

Something like (using SendMessage)

    public void OnDuck(InputValue value) {
        // if action is a button type, event will fire on button press and release.
        _ducking = value.isPressed;
    }

    public void OnAttack(InputValue value) {
        // we probably only care about the button press for attack
        if (value.isPressed) {
            if (_ducking) {
                FallAttack();
            }
            else {
                BasicAttack();
            }
        }
    }