The action of groups on hyperbolic spaces