button issues and power issues

If you have a power supply issue causing problems with the buttons, you have to fix that, as it can just as well cause problems with the processor - which can range from simple freezing to resetting and unexpected behaviour. All of which can do serious damage depending on your system.

If you have long wires to the buttons, the problems may be caused by electrical interference. A small cap in parallel to the button can do wonders (it also helps debouncing), as can do a stronger pull-up (instead of the internal ones, around 30k, try 10k or even values down to 1k).