Control of valve gear to facilitate reversing, starting, braking of four stroke engines