Slight problem with jQuery and keypresses in a RadWindow

Boris

I have an extremely simple radwindow, called as follows:
var oWnd = window.radopen(url, "title");
oWnd.show();

Once in the window I want to be able to close it simply by hitting the Esc key.

I have this code, essentially pieced together from various threads. :
The code below works, but only if I click within the body of the RadWindow first or, if on load, I set the focus to a control within the body.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.