The gravity gun upgrades automatically as you progress through the Half-Life campaign. You do not need a separate item or menu command; the upgrade happens near the end of the game.