Checking if player hit button in the right time

Is there are any tutorials how to make this looking Circular bar with interaction option. I need to recive input from the player and check if he done it in right time.
Somehow i can’t find any similar mechanics tutorials.
But i did found circular bars tutorials, there are plenty of them, but i need the interaction system, based on it.

plz help