Trying to use an Arcade Button with Ableton Live but getting strange behavior.

Hi!
I'm very new to Arduino and i'm trying to build a MIDI controller using a Mega, the Ableton Live connection kit and some arcade buttons and getting some odd behavior that I don't know how to fix. When the button isn't pressed down, I'm going a constant flicking on and off from the digital output, no constant stream of on or off. But when the button is pressed down, the flicking stops. How can I set this up so I just send a impulse when the button is pressed down. Your help is greatly appreciated.

I've attached a picture on how the the arcade button is wired up.

Your picture is not very clear as to what wire goes where, and what software you are using.

Basically you need either a pull up or pull down resistor either external or use the internal pull up resistor.

This link tells you what is going on Inputs

You have to use the internal pull-up resistors, and you have to perform edge detection and button debounce.

Read this, it explains how to send MIDI, and how to create a MIDI controller:
Sending MIDI over Serial.html > Finished code
MIDI Controller.html > Buttons
You might be interested in my MIDI Controller library.

Pieter