UKismetInputLibrary::Key_IsModifierKey

Returns true if the key is a modifier key: Ctrl, Command, Alt, Shift