The Pen tool draws from one marker to the next to create a rectangle. Use W, A, S, D to move the top left green marker and the arrow keys to move the bottom right green marker. This changes the dimensions of the rectangle and the area and perimeter change as the markers move.