++keep for hadrons in Pythia8 is a bit dangerous since it effectively pulls in almost half of the event record. For strictly jet flavor purposes
```Python
"keep  (400 < abs(pdgId) < 600) || (4000 < abs(pdgId) < 6000)"
```
should be sufficient.