This action could open an inlet valve for an intake stroke, or open an exhaust valve for an exhaust stroke.
"On the intake stroke, the intake valve has opened, the piston is moving downward, and a mixture of air and vaporized gasoline is entering the cylinder through the valve port."
When the piston reaches the bottom of the intake stroke, the intake valve closes, trapping the air-fuel mixture in the cylinder.