Well, as it turns out, it was an easy fix. Simply had to prefix GetMouseEvent with if PollMouseEvent(event) then GetMouseEvent(event); as Pollmouseevent does not wait for input, while GetMouseEvent does.