before KEYBOARD_STATES changed