Setting the ResetButtonCallback to a bindable event still triggers even outside the menu

I was trying to make a custom reset function using the callback and a bindable event, but then for some reason, pressing R in game still triggers the bindable event despite being outside the menu.