detect when using firework while flying

can you detect when a player uses a firework while flying? any data, etc?
Continue to help post