Let $X$ and $Y$ and $Z$ be compactly generated Hausdorff spaces. Is it true that the composition map $Z^Y \times Y^X \rightarrow Z^X$ is continuous? Here the function spaces are given the compact-open topology. If it's necessary, I'd be happy to $k$-ify everything in sight to ensure that all spaces I have written down are compactly generated.
I know this works if $Y$ is locally compact (with no further assumptions on $X$ and $Z$, at least if you define "local compactness" correctly), but I can't figure out if you can generalize this to the compactly generated setting.