Welcome to Android Central! Which phone, and which keyboard app? If it's a Samsung, you may have enabled the floating keyboard, which allows you to move the smaller keyboard all over the screen. In that case, tap the key next to the spacebar that looks like a couple of rectangles on top of each other.