Android: use real editable text and mimic the edit operations to generate key events This fixes issues where the IME and the output would get out of sync