Set keycode in list ascending