convert_2_scancode refectoring