/* Before you start, select your target, on the right of the "Load" button */
int main(void)
/* Before you start, select your target, on the right of the "Load" button */
int main(void)
{
		if (TM_USB_HIDDEVICE_GetStatus() == TM_USB_HIDDEVICE_Status_Connected) {
			TM_DISCO_LedOn(LED_GREEN);
			if (TM_DISCO_ButtonPressed() && already == 0) {
				already = 1;
				Keyboard.L_GUI = TM_USB_HIDDEVICE_Button_Pressed;
				Keyboard.Key1 = 0x15;
				TM_USB_HIDDEVICE_KeyboardSend(&Keyboard);
			} else if (!TM_DISCO_ButtonPressed() && already == 1) {
				already = 0;
				Keyboard.L_GUI = TM_USB_HIDDEVICE_Button_Released;
				Keyboard.Key1 = 0x00;
				TM_USB_HIDDEVICE_KeyboardSend(&Keyboard);
			}
		} else {
			TM_DISCO_LedOff(LED_GREEN);
		}
	}
}