You've dragged it up there. There is a grabber on the bottom right of the keyboard, (on the hide keyboard button). You can either hold that for Dock and merge, or just grab the whole keyboard by that button and drag it back down.
You can also split the keyboard by just dragging two thumbs from the center, out to the sides.