Simulating and controlling non-adiabatic effects in ultrafast photochemistry