Lock Transparent Pixels
To lock transparent pixels, so that you can only paint in pixels that are opaque, press the / (forward slash) key or click on the first icon next to the word “Lock:” in the Layers panel. To unlock transparent pixels press the / key again.
For more tips and tutorials, subscribe to Photoshop Training Channel on YouTube!