maybe it is because when composables evaluated to two (dismiss, focus) event, but in the other case (focus, dismiss) event? so in the first case, the keyboard is dismissed then show up, but in the second case, the second keyboard dimiss has no effect because not currently focused. (Haven't looked at what's really happening, just speculating