EnhancedInput how to prevent both actions firing when using same key but one with a modifier?

I know you use C++, and I’m not good with C++ myself, but I was able to do it in Blueprint, do you want an image of that Blueprint?