I see, so you can redirect output in Linux to a 'null' device, which then does not output it. But that would be the same as using a hook because I'd have to override the distro's default procedure for handling key presses.
Also, it's OS specific. I'm sure that someone has needed to implement a higher level solution for work environments featuring a mix of Linux and non-Linux environments.