All you have to do is hold in both buttons until the phone screen goes black and then it will reboot into a recovery menu. Select boot normally and the buttons will work again when the phone comes back up.
No problem. Happened to me too on the first day I had the phone. I just googled the issue and found the answer rather quickly. Hasn't happened since then and I've had the phone almost a month so you should be good.