On top of that you can create a corresponding event yourself which gets triggered on mouse button release, for example as follows:
var mouse_left_off = 0;
Make a loop which deals with player input, then add something like this:
void handle_input()
{
while(1)
{
... keyboard input
if(mouse_left) mouse_left_off = 0;
else
{
if(!mouse_left_off) mouse_left_off_event(); //
mouse_left_off = 1;
}
wait(1);
}
}