Add events for when the keyboard is dismissed or shown. Cleanup