Is there function or variable built into the engine that recognized when a mouse button is released?

I'm really surprised that I have never looked this up, and that it's not in the manual...