Waits until the keyboard is properly hidden.