Don't set KeyboardFocus to NULL, use KeyboardFocus->Blur() instead, so the relevant events are sent