Jump button help?

so i created a button that you press to jump. when you press the button but my guy shoots up into the sky. it works fine with the spacebar but when i click the button it doesn't work normal. (note: im useing the platformer template for my jump controls. i just copied them from the blue character :P) help?