Custom sequences

I thought i should build something here to get contorl over camera.Am i doing that wrong way?