pKeyboard->SetAutoClose() ?