The function initialising the listener never returns, and the code get stuck at that function call. "listener = Palm_Control_Listener(Mouse) "