Keyboard layout optimizer