How do you make a polygon appear in response to a spacebar? (please help!)

if spacebar.keys:
     polygon.setPos(center_pos)
1 Like