To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.
A malfunctioning or unusable power button might be inconvenient, but luckily, Apple also allows you to power off your iPad ...