To draw a straight line:

Click Shift then draw the line

It will be exactly straight!

This is useful for Google Slides, Canva, Photoshop, PhotoPea, and more.