If your iPad is frozen to the point that you can't reboot it the normal way, perform a forced restart. Charge the battery.
The sleep/wake button on your iPhone is crucial to the functionality of your device. So when my partner’s brand new iPhone 15 Plus lock button randomly became stuck, it was annoying, to say the least.