Re: keylogger to interferret SUDO
A well-written key logger will pull any key press on the system, or possibly even from a networked login depending on whether the remote session uses the keyboard event handler.
If the logger is in the event chain for whatever app, yes it can read the keyboard.
You've had the first spark of fear, now it's time for you to do some research and find out for sure...
Help stamp out MBR partitions. Use GPT instead!