The word aptly describes an action that's done appropriately and capably. If you're a medical student, you must aptly pass all your written exams before you can practice medicine.
First used in the mid-14th century, the adverb aptly derives from the Latin word aptus, meaning "fit, suited." A skilled pilot can aptly — or capably — fly a plane through a rainstorm. A person who loved animals as a child will be aptly suited to study veterinary medicine later because it fits his interests. You might feel that the young, handsome actor aptly performed the role of Hamlet in your theater production.