Everything a process does beyond touching memory is going through a syscall. The OS serves every key press to such a program.