There have been several questions about whether Metasploit may be used to install a keylogger on a victim's machine. Unanimous is "YES" for the answer here.