Fix: segmentation fault in glutKeyboardUpFunc callback