Extract sample key and value behavior.