A portable terminal comprising: (a) a display unit: (b) a touch panel which is arranged on the display unit and a part other than the display unit extended from the display unit, the touch panel detecting a position touched by a user on the display unit and outside the display unit; and (c) a key part which is arranged outside the display unit and within the part other than the display unit on the touch panel, the key part detecting key pressing via the touch panel; characterized by: (d) a control unit which performs any one of first control and second control based on a notification from the touch panel, wherein the first control is control which, when detecting that the user touches a detection area set near the key part of the display unit via the touch panel, even if detecting that the user touches the key part, does not process the touch on the key part as key pressing, and the second control is control which, when detecting that the user touches the key part, does not process the touch on the key part as key pressing for a certain period of time (S22, S23, S27), determines whether the user touches the detection area or a boundary area within the certain period of time (S24, S25) and when determining that the user touches the detection area or the boundary area, does not perform a key press processing on the key part and when determining that the user does release the touch from the touch panel, performs the key press processing on the key part, the boundary area being arranged between the display unit and the key part on the touch panel. (a) a display unit: (b) a touch panel which is arranged on the display unit and a part other than the display unit extended from the display unit, the touch panel detecting a position touched by a user on the display unit and outside the display unit; and (c) a key part which is arranged outside the display unit and within the part other than the display unit on the touch panel, the key part detecting key pressing via the touch panel; (d) a control unit which performs any one of first control and second control based on a notification from the touch panel, wherein the first control is control which, when detecting that the user touches a detection area set near the key part of the display unit via the touch panel, even if detecting that the user touches the key part, does not process the touch on the key part as key pressing, and the second control is control which, when detecting that the user touches the key part, does not process the touch on the key part as key pressing for a certain period of time (S22, S23, S27), determines whether the user touches the detection area or a boundary area within the certain period of time (S24, S25) and when determining that the user touches the detection area or the boundary area, does not perform a key press processing on the key part and when determining that the user does release the touch from the touch panel, performs the key press processing on the key part, the boundary area being arranged between the display unit and the key part on the touch panel. the first control is control which, when detecting that the user touches a detection area set near the key part of the display unit via the touch panel, even if detecting that the user touches the key part, does not process the touch on the key part as key pressing, and the second control is control which, when detecting that the user touches the key part, does not process the touch on the key part as key pressing for a certain period of time (S22, S23, S27), determines whether the user touches the detection area or a boundary area within the certain period of time (S24, S25) and when determining that the user touches the detection area or the boundary area, does not perform a key press processing on the key part and when determining that the user does release the touch from the touch panel, performs the key press processing on the key part, the boundary area being arranged between the display unit and the key part on the touch panel.