How to detect keyloggers Mac?

Hello experts,
How to detect keyloggers mac?
I am using mac operating system in my hp desktop computer.
I just want to know if how will be able to detect keyloggers in a specific unit of computer with a mac operating system.
I want to get rid of keyloggers to protect my privacy.
Thank you.
