Use WASD upon entering the factory, otherwise just click the green flag, and follow the instructions.
For G4C