glutKeyboardUpFunc(keyUp);
glutKeyboardUpFunc(specialkeyUp);


You can only have one function registered for each callback. This replaces your `keyUp` function.

You probably meant...