 void dudrackKeyUp(uint8_t key) {
     switch (key) {
         case KEY_HENKAN:
-            henkanPressed = false;
+            keyboardState.henkanPressed = false;
 
             return;
 
         case KEY_MUHENKAN:
-            muhenkanPressed = false;
+            keyboardState.muhenkanPressed = false;
             releaseModifier(MODIFIER_LEFT_SHIFT);
 
             return;
 
         case KEY_SPACE:
-            spacePressed = false;
+            keyboardState.spacePressed = false;
             releaseModifier(MODIFIER_LEFT_SHIFT);
-            if (noEventBetweenSpaceEvents) {
+            if (keyboardState.noEventBetweenSpaceEvents) {
                 pressKey(KEY_SPACE);
                 releaseKey(KEY_SPACE);
             }


#define KEY_COUNT 0xE8

#define MOUSE_MOVE_COEFFICIENT 3.0
#define MOUSE_SCROLL_COEFFICIENT 1.0

#define MODE_NEUTRAL 0
#define MODE_DUDRACK 1

        Serial.println(key, HEX);
#endif

        switch (keyboardState.currentMode) {
            case MODE_NEUTRAL:
                releaseKey(key);
                return;
