To create a hostile turret or laserbeam, simply select it and press Shift + 0 (that's a number). Keep in mind pressing just 0 will make it neutral.