If I use an optional 5V micro USB adaptor to power my keypad, what happens to the batteries in the keypad?

The batteries in the keypad will act as back up power in the event of a mains power failure.