find key codes and key code list
main loop