This is the flat out, you can’t kill me, I’m too crazy to be held responsible, I belong in a nice mental ward for a couple of years, defense.
He didn't know what he was doing? Fine. When they strap him into the electric chair, tell him it's a ride at Disney. He won't know the difference there either.