Changed writeKey function to display the Key value and not the DataType val