The point stands, but that's not really a keylogger. It's a library to manage keyboard inputs. Of course, it could also send all key info somewhere externally too.
But in what universe would an individual ad need that? This seems like precisely the sort of thing that a third party ad would be prevented from doing.
Keypress.js doesn't really help creating a keylogger.
It does make creating interactive ads easier though.