"conformal coating" is the thing to google, though that only protects the PCB and not the tricky bits. You'd still need to figure out a way to waterproof connectors and buttons and moving bits like that.