Keyboard robot optimization by tracking key presses.