to compelete __PrepareKeyPressMessage code