Another way to fill a layer with 50% gray: Edit > fill > Use 50% gray (from the drop down menu at the top)