fixed hotkey handling on Windows