I found that graphscr worked for switching focus from a palette to the drawing. I don't know if it will work in your situation.
I found graphscr in acmgdinternal.dll
Autodesk.AutoCAD.Internal.Utils
Regarding acmgdinternal.dll:
"Thunk to AutoCAD from .NET - not intended for public API consumption"
Message was edited by: Mark Johnston - I thunk of something I should probably add to my post.
CAD Programming Solutions