A logic input signal should never be left floating, (disconnected). A push switch is best used as part of a potential-divider. In this way, it is always connected to +v or 0v.
There are 2 ways to connect a push switch in a potential divider. These are shown right and work exactly opposite from one another.