Control of valve gear for two stroke engines