A button for actuating a switch in a surgical handpiece. The button is sealed to a bezel, and the bezel is sealed to the handpiece. The button, bezel, and handpiece create a sealed enclosure surrounding the switch to prevent external substances from contacting the switch. Further, a control board for controlling the handpiece is embedded in a cable endcap instead of being housed within the handpiece.