capricciosamente
in a whimsical way (= unusual and strange in a way that might be funny or annoying):