Keylogger (also called keystroke logger) is a program or device that logs the keystrokes you type. There are two types:…