Extract callback for keylogger event listener
Extract callback for keylogger event listener

This should fix the issue where the keylogger wouldn't be removed due to
passing an anon function instead of a "real" function.

dotkom/Nibble2,dotkom/Nibble2,dotkom/Nibble2