Fixed missing key.mode permission