If you're using smart keyboard or Smart Keyboard Folio: First thing, you need to remove your smart keyboard gently. Then restart your iPad. Now connect your keyboard to iPad correctly.
If you're using an onscreen floating keyboard: First, you can open up some app in which you need to use keyboard, and press the simle icon, then click keyboard settings and reset your keyboard.