modified key code assign