The terminal could be buffering the input before it sends it to the program.

Depending on what kind of terminal you are using you could search for ways to turn that off.

Cheers,
_