Oddly enough,  the Alexandria ballfield shooter had passed his background check,  had an Illinois Firearms Owners ID, and used an SKS rifle that was not banned under the Assault Weapons Ban.  Would a Psychiatrist have committed him based on actions prior to the shooting?  Unlikely.  And even if he had,  would a judge have agreed to take away his rights?  Again unlikely.