Project 2: purpose of 10k resistor?

The '328P input only needs 1uA of current to change from high to low, or low to high.
1uA is next to nothing - a hand waving around can radiate enough energy for that 1uA.
The 10k resistor provides up to 500uA to overcome any radiated energy from the environment.