Fixed var key = to var keyVal =