Hi, In my activeX control, I am trying to read the key currently pressed by the user, using repeated calls to GetAsyncKeyState(vKey) function in a loop with various vKey values. But when I run the activeX control in IE7/IE8 protected mode, the function seems to be returning 0xFFFF continuously(even though one of the keys is pressed) for some time and then gives correct values for some time and so on. With protected mode set to Off, it works without any issues.Has anyone faced this issue earlier? Please help me. Thanks, Varaha.