def WaitHotKeyReleased(hotkey: tuple) -> None:
mod = {ModifierKey.Alt: Keys.VK_MENU,<EOL>ModifierKey.Control: Keys.VK_CONTROL,<EOL>ModifierKey.Shift: Keys.VK_SHIFT,<EOL>ModifierKey.Win: Keys.VK_LWIN<EOL>}<EOL>while True:<EOL><INDENT>time.sleep(<NUM_LIT>)<EOL>if IsKeyPressed(hotkey[<NUM_LIT:1>]):<EOL><INDENT>continue<EOL><DEDENT>for k, v in mod.items():<EOL><INDENT>if k & hotkey[<NUM_LIT:0>]:<EOL><INDENT>if IsKeyPressed(v):<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
hotkey: tuple, two ints tuple(modifierKey, key)