How did I prevent the HyperX Pulsefire Core RGB (HX-MC004B) mouse from changing its DPI settings when I clean it?

How do I disable unnecessary buttons of the HyperX Pulsefire Core RGB (HX-MC004B) mouse?