The piston moves down the cylinder, the inlet valve is open and the outlet valve is closed. The negative pressure created in the cylinder helps draw in air. If the engine is supercharged with an exhaust compressor, turbo, or mechanical compressor driven by a belt or similar, then they force the air into the cylinder.