To draw a rectangle, drag diagonally until the rectangle is the desired size.
To draw a square, hold down the Shift key while you drag diagonally until the square is the desired size.
To create a square or rectangle using values, click where you want the top-left corner to be. Specify a width and height (and a corner radius for a rounded rectangle), and click OK.
For a video on using shape tools, see www.adobe.com/go/vid0036.