Control of valve gear for four stroke engines directly driven by the crankshaft