How do i pair my keyboard to my ipad? I have charged this keyboard for an hour and turned it on, and it still won't show up on the bluetooth to pair it to the iPad I’m using, when I turn the magic keyboard on the light lights up green then flashes blue then it stops, I don’t know what that means, 

Also, I don’t know what the button above the power button is for. This keyboard doesn't have a place to change batteries cause it stuck on a fabric that the keyboard doesn't come off, so it's like a book.
The Magic Keyboard has rechargeable batteries that cannot be replaced by the user. If you're running low on batteries, plugin a lightning cable to recharge the batteries.

You pair it with the iPad by first turning it on (move the slider on the back from the off-position to the green on-position). Then on the iPad open Settings &gt; Bluetooth. Ensure that Bluetooth is enabled, and wait for the Magic Keyboard to appear in the list of devices below. Tap it to pair.

If the keyboard does not pair, you might have it paired to another iPad or computer that is nearby. Ensure that you're a good distance from any such device before pairing - or turn those devices off before pairing with your iPad.