If you do something on purpose (not by accident), you do it purposely. But if you have a specific purpose in mind, you are acting purposefully.