Replacement of onActive is DisposableEffect.
But the problems with the softkeyboard and focus can not be solved with this.
I do also have massive problems getting BasicTextField and also TextField working as expected. In the Android legacy view system it was a pain to get everything right and in compose it was not possible at all in the past. Now it is improving but far away from reliable behavior.