Using the Magic Glove in Sonic Adventure 2 is simple once you know the controls. Press Y to cycle through the available actions, which you'll see displayed in the toggle menu at the top of the screen.
When "Magic Gloves" appears in that menu, press B to activate it. With a little practice, you'll be pulling off this move smoothly.