Changing a MIDI trigger action if the keyboard is pressed

I'm using
currently_pressed_keyboard_keys != "60,"
&
currently_pressed_keyboard_keys == "60,"
as condition in two different actions, so if a key is pressed one action is triggered and if no key is pressed then the other action is triggered.

It turns out only the action that it's first on the action list gets triggered, while the second one won't work even when meeting the condition.

The input trigger is the same for both actions (I guess that's the conflict), the conditions are the only difference but it seems not enough to allow other actions with the same trigger.

Is there another way to set keyboard modifiers for other input devices actions?