There are a few items that can be detected by right-clicking in the air. The `carrot_on_a_stick` and `warped_fungus_on_a_stick` both work. and then all trowable items such as:

 - ender pearl
 - eye of ender
 - lingering potions
 - Bottle o' Enchanting
 - splash potions
 - snowballs
 - etc.

But only the two "on a stick" item can be detected without doing anything.

During my testing I also found a few items what is impossible to test for such as:

 - air
 - arrow
 - any kind of dye (even if you dye something like a sheep it doesn't detect it)
 - bone
 - and probably some more