thanks for the advice, i just figured out the problem, i checked for other events that made the problem happen, like you said, but i didnt have any (i used ctrl f so i didnt skip anything), but after i spent some time looking i remembered i changed some code a long time ago for the pause screen, so i changed it back and now it looks like this:
when the bug was happening, the button down and pause visible events were together like this:
I'm not sure why its like that, and while it was together the pause screen worked fine for a while, which is confusing me, but at least its working now, and thanks again