Fix missing key code check on release