Methods and devices are provided for controlling movement of a working end of a surgical device. In one embodiment, methods and devices are provided for moving an end effector on a distal end of a surgical fastening device. Movement can include rotational movement of the end effector about an axis of the shaft, articulation of the end effector relative to the shaft, and actuation of an end effector, e.g., closing, firing, and / or cutting. In other embodiments, a single cable actuator is provided and is movable between a first position, in which it is effective to rotate an end effector without actuating (i.e., closing and firing) the end effector, and a second position, in which it is effective to actuate the end effector without rotating the end effector. In other aspects, methods and devices are provided for moving a flexible neck formed on a distal end of an accessory channel for use with an endoscope. Movement of the flexible neck can be used to control positioning of a tool extending through the flexible neck.