The underscore is made by pressing the Shift and Hyphen keys

Underscore Key
 at the same time on your keyboard. This will work on either a Windows or Mac computer.