c65 currently reads input via kbit on native windows. this works interactively but fails if you try to redirect input from a pipe since it still waits for physical keyboard input.
should either remove kbhit and use blocking input (which would mean no KEY? there) or switch to an alternative implementation that recognizes non-interactive input streams. Some possibilities were discussed in #126
(you can assign me this one)