void HIDDKeyboardInputReport_ReleaseStandardKey(HIDDKeyboardInputReport *report, unsigned char key) { ASSERT(key <= HIDDKeyboardDriverDescriptors_LASTSTANDARDKEY, "Invalid standard key code (%d)\n\r", key); // Look for key in array unsigned int i = 0; unsigned char found = 0; while ((i < HIDDKeyboardInputReport_MAXKEYPRESSES) && !found) { if (report->pressedKeys[i] == key) { found = 1; report->pressedKeys[i] = 0; } i++; } }