Question marked as
That's Split Keyboard mode. To rejoin the halves, tap and hold the keyboard key (bottom right), drag your finger up to 'merge' and release.