use the keymap's translate_keyboard_state, use the key value rather than name