Correct key logging