Can anyone explain how logic gates are used in a computer?

I understand how logic gates work, but cant relate it to how they work on a computer for example when the key is pressed how a computer would process that key press into an output on the screen using logic gates.

Any help is greatly appreciated.

Grover