draw polygons and control keys