fixed the key-mapping bug for SingleCompile