How to tell if mouse is off-screen?

I meant use a function to check if he clicked the button combinations and in the same time have the focus released, like that, you covered every possible way of him tapping out

Wait i got you wrong ;-;