I have a gamepad, but I rarely use it for MUGEN. I use it only when I'm playing KOF MUGEN games, or playing with Blazblue chars. When a Ninja falls, another one rises!
I have a joystick, it is cool to play mugen with joystick but i recommend a keyboard because it is way easier than joystick. So my vote goes for keyboard.