Should the velocity edit window not be shown (it usually is by default), simply hit SHIFT+D on your keyboard to bring it up. If the bottom section of the piano roll is not set to velocity, you can click the word "Control" on the left side and select it. (Check out the other adjustable options here too)