Use global event handler for window messages