I use GFI's on all my outlets I have "tank" things (powerheads, heater, lights, etc) plugged into.. The way they work is exactly like in your bathroom, outdoor outlets, and kitchen... if a ground fault occurs (too much overvoltage, ie spills onto the electrical cord or dropping of an electrical appliance into a sink or bath) it cuts out the circuit...
HTH
#00