Från Apples supportforum:
You can choose between multiple keyboard layouts to match the keys on your physical keyboard. You can also use an alternative keyboard layout that doesn't match the keys on your physical keyboard.
Before you can change your physical keyboard, you need to pair it with your iPhone, iPad, or iPod touch. Follow the instructions that came with your keyboard to place it in discovery or pair mode. After you pair it, go to Settings > General > Hardware Keyboard and select a layout.