This is actually the best way to do these. I found that the modifiers seem to either be set to be pressed at the same time or the modifier itself consumes the input. If you mash the buttons you can see them run occasionally but you have to hit it just right.
If you do it with the “Is Input Key Down” node there are no issues.