Make sure we're correctly resetting the internal key capture widget pointer when the widget goes away.