Avoid Triggering Keyboard Shortcuts in Key Sequence

I have a left command + key in a sequence (3 keys) and and as a shortcut (cmd + key).
Is there a way to "Check" how many keys are down before doing an action?