Adding documentation to uploadKey function