How to make polygon with regular straight lines

I want to make a rectangle with regular straight line like the ones when you select the pencil tool and hold shift+ctrl. Thank you.