How to turn on a led for the time that a button is pressed down?

I have a question about buttons. Is it possible to create a button that sends ’1′ for the time that you click on it with your mouse, and sends ’0′ when you release your mouse button? I want to turn on a led for the whole time that a button is pressed down.

Now I’ve done this with a toggle, but it doesn’t give exactly the right effect. Since you need to click twice to turn it on and off.