More reliable method for detecting when the soft keyboard dismisses.