The domain of quantum technologies has been recently broaden to satellites orbiting the earth. Long distances communication protocols cannot ignore the presence of the gravitational field and its effects on the quantum states. Here, we provide a general method to investigate how gravity affects the performance of various quantum key distribution protocols for continuous variable states of localized wave packets. We show that the consequences of gravity strongly depend on the configuration and the cryptographic scheme used.