I tried below
cmds.copyKey("pSphere1", at=["translateX", "translateY", "translateZ"], t=(5, 10), an="objects", iub=False, o="keys")
cmds.pasteKey("pSphere1", at=["translateX", "translateY", "translateZ"], an="objects", o="insert", c=False, t=(14,))
But, it can't work as I expected.
I want to copy keys in a range, and paste to somewhere else with maya commands.
Do I misunderstand the maya commands?