HasFlag
It doesn't make sense and it wasn't doing the right thing.
ShiftPressed
Not only is this simpler, but it also is more correct (for explanation why, try holding both shift keys while dragging, and just releasing one of them - the previous code would briefly turn aspect ratio off).