key.c: Only set the error code.