Holding item detection

Is there a way to detect what item is player holding with an advancement? Lets say I wanted to detect if a player is holding a stone hoe while pressing a stone button... Thanks!
Continue to help post