A mobile telephone identifies display positions of windows displayed on a display screen excluding a window having the dialogue right, compares the window arrangement obtained by comparing the window display positions to the ten-key arrangement stored in a selection key candidate table, and allocates the selection key for the respective windows by reflecting the ten-key arrangement.