Logs hardware key events with an option to share the log