Straight Lines When Creating Paths
When creating a path using the Pen tool, click and hold Shift to snap to the nearest increment of 45°. This will make it easy for you to create symmetrical shapes or straight lines.
For more: Photoshop Keyboard Shortcuts