There's a way, actually.
From the help file:
if ($mouse.key & 2) echo control key is pressed.
if ($mouse.key & 4) echo shift key is pressed.
if ($mouse.key & 8) echo alt key is pressed.
It's a little awkward that the modifier detection is exclusively associated to a mouse-related identifier, but there it is.