Fixed keyboard behavior on appearance transitions