follow new CO
use constants for m_iPitchAndKeylockMode
fix adopting PitchAndKeyLockMode after restart
Removed unused Code