Search for "floating pin", "pull up resistor", and "pull down resistor".
This looks like a good place to start...