I know sometimes there are timed ones you can hit again, where a door only opens temporarily, but I've run into a bunch of times in these two wads where switches only stay pushed for one second, so I couldn't go anywhere in time anyway. It's just odd and confusing, was wondering if it's some oddity of the mapping, or if it's something to do with GZDoom (I'm using GZDoom 3.1.0, sometimes with SmoothDoom). Clicked on a couple youtube videos of this particular map but they go so fast they never look back at the switch.

This particular one you can press a bunch of times but doesn't do anything until you get a blue key and open a door to push another button, which also doesn't stay pushed and I can keep pressing it. But after pushing that button, I go back and push this pictured button and it lowers those barriers so I can go on. But I can still push both of these switches over and over, with them not doing anything, just making the flicking animation/sound. Since the one switch restored the power and the other lowered the barrier, shouldn't they both stay pushed?
What's the deal with these? And also all the ones in Memento Mori 2? I keep thinking these are timed or messing up because they don't stay pushed at all, but the levels seem to work and proceed like I'm pushing buttons as normal. Plus in more mazelike levels you can be left wondering if you had pushed a switch before or not. Not all switches do this, but I'm running into a lot of these one second or less switches.
Any switch/button insight from the Doom enthusiasts on here would help my brain, thanks!