(Leonardo) Please help! All my input pins are going high low until i put a voltage then it stays high!

oh also about the floating I/O Pin can I use a common resistor and a common ground?