added advanced key logging for media key support