Ok so first thing to do is to select all your static mesh components using shift+Click

Then in the details panel, assign them a tag

Then make a “Get components by tag” node, this will return an array of components. Be sure to select static mesh component as the compnent class

Then add them to your input action instead of the initial array
This will affect all components with the given tag. I believe this is the functionality you are looking for
