Fix some warnings from Clang's static analyzer.

Since 'oldKey' was a uint8_t, the analyzer couldn't verify that the case
statment handled all values, and then gave warnings about uninitialized
uses of oldKey later in the function.