Homemade Valve Spring Compressor.

When you compress the spring, what keeps the valve from going with it?
piston at TDC.