Are you executing a command using your voice, and the game is interpreting one key combination as both, or are you trying to execute the command using keyboard keys?
In case of the former, are you using
Press Left Alt+X keys and hold for 0,06 seconds and release
?
In case of the latter, here are two ways you can go about this:
Either you check the "Shortcut is invoked only when all keys are released" option for the "When I press keys" shortcut in both commands, which means you need to release the key before either command executes
Or, you trigger off the X key, and check inside the command whether alt is pressed when it starts(either using one command for the actions of both features, or the "Execute Another Command" action to run the relevant command).
E.G.
Begin Device State Check : Keyboard Key 'Alt' Is Pressed
Write [Blue] 'Alt X branch' to log
Else
Write [Blue] 'X branch' to log
End Condition