Fixed key copy script