function onWindowMessage(msg, wparam, lparam)
if msg == 0x100 or msg == 0x101 then
if wparam == require("vkeys").VK_ESCAPE and main_window_state.v and not isPauseMenuActive() then
consumeWindowMessage(true, false)
main_window_state.v = false
end
end
end