Fix hotkey to be compatible with windows 7