Court records show that the West Virginia man charged in a shooting at western Maryland machine shop has pleaded not criminally responsible for mental reasons.