function onWindowMessage(msg, wparam, lparam)
if(msg == 0x100 or msg == 0x101) then
if (wparam == VK_ESCAPE or wparam == VK_RETURN or wparam == VK_TAB or wparam == VK_F6 or wparam == VK_F7 or wparam == VK_F8 or wparam == VK_T or wparam == VK_OEM_3) and msg == 0x100 and editKeys > 0 then
consumeWindowMessage(true, true)
editHotkey = nil
end
end
end