When is group cohomology continuous?