Keyboard text logging improvements