add key-chord mode and other fix