handle key down events: tab toggles shape style