sanitized the keylistener

sanitized the keylistener