When you use a switch, or touch a wire to a voltage source, contact bounce will occur, generating several transitions each time. You have to debounce your input. You will also need a pullup or pulldown resistor.
this circuit here shows how to debounce a switch(spdt-single pole double throw)to provide clean clock signals using a 4093(2 gates,the switch and two pull up resistors)gates u 1 and u 2 are the set reset latch.........