Minor keyboarding code cleanup after review

1) clarify a comment to explain things better
2) free an allocated g_variant
3) write a log message through the Logger (as well as console output)