convert keycode to scancode