Determine if inversion is needed based on Keyboard layout