             Joystick.releaseButton(5);
 
             return;
+
+        case BUTTON_6_KEY:
+            Joystick.releaseButton(6);
+
+            return;
     }
 }
 
 void stgModifiersChange(uint8_t modifiers) {
     MODIFIERKEYS mod = *((MODIFIERKEYS*)&modifiers);
 
-    if (mod.BUTTON_0_MODIFIER) {
-        Joystick.pressButton(0);
+    if (mod.BUTTON_1_MODIFIER) {
+        Joystick.pressButton(1);
     } else {
-        Joystick.releaseButton(0);
-    }
-
-    if (mod.BUTTON_2_MODIFIER) {
-        Joystick.pressButton(2);
+        Joystick.releaseButton(1);
+    }
+
+    if (mod.BUTTON_3_MODIFIER) {
+        Joystick.pressButton(3);
     } else {
-        Joystick.releaseButton(2);
+        Joystick.releaseButton(3);
     }
 
     if (mod.BUTTON_4_MODIFIER) {

#define KEY_HENKAN 0x8A
#define KEY_MUHENKAN 0x8B
#define KEY_HIRAGANA 0x88

#define KEY_1 0x1E
#define KEY_2 0x1F

#define STICK_LEFT -1
#define STICK_RIGHT 1

#define STICK_DOWN_KEY KEY_Z
#define STICK_UP_KEY KEY_X
#define STICK_LEFT_KEY KEY_AT
#define STICK_RIGHT_KEY KEY_BRACKET_OPEN
#define BUTTON_0_KEY KEY_ENTER
#define BUTTON_1_MODIFIER bmRightAlt
#define BUTTON_2_KEY KEY_PRINT_SCREEN
#define BUTTON_3_MODIFIER bmLeftShift
#define BUTTON_4_MODIFIER bmLeftCtrl
#define BUTTON_5_KEY KEY_A
#define BUTTON_6_KEY KEY_SPACE

USB    Usb;
USBHub Hub(&Usb);
