Fix a Win32 key event bug that was introduced with the previous commits.