Sorry, the assumption I left out is that whoever is running the keylogger would see you logging into a "valuable" account during their logging and then try to access it. Since it'd be a new account with nothing on it, there's nothing for the attacker to really compromise, but you could get a notification letting you know someone new logged in, which would let you know that someone successfully captured you logging in.
So lets say we have a software, and your account can tell you when somebody else sees your info in this piece of software?
How would this work? And what does this have to do with keylogging? Genuinely asking as I'm just trying to understand what link I'm missing