Adding a callback to listKeys