Closing IE's Download Manager

I wrote a script that is supose to close the “Download Manager” window in Internet Explorer, but for some reason it isn’t working. I tried using “System Events” and Keystroke and Key Code to bring the window forward but it isn’t working. Here is my script.

tell application “System Events”
tell process “Internet Explorer”
keystroke “4” using {command}
–key code 21
end tell
end tell
tell application “Internet Explorer”
CloseWindow --“Download Manager”
end tell

In IE’s dictionary you find

So the syntax is

tell application "Internet Explorer" to CloseWindow Title "Download Manager"

SC

I assume you know that “end tell” is not necessary when using “to”