There is no way to do that in standard C unfortunately. Input only goes into C's IO buffers after you press enter.