Zig,
I wish everything was a simple as that, but it is never the case.
The basics are - When the piston is at the top you then fire a charge into the cylinder, stopping the fire before the piston hits the bottom of the stroke, this is the power stroke. Then the piston starts on its way up, on the way up you have to open above the piston to atmosphere to prevent pressure building up on top of the piston before it reaches the top, this is the exhaust stroke. Then the cycle repeats itself.
The longer the stroke of the engine, usually the slower it runs. A fairly fast engine will be a 'square' engine where the piston diameter is equal to the stroke length.
The poppet valve system is the way to go if you want a 'fast' engine.
John