improves m_keyboard_layout read