An electronic device comprising: a display including a front surface area and a side surface area disposed in at least one side of the front surface area, the front surface area facing a forward direction of the electronic device, and the side surface area facing a side direction, the forward direction and the side direction, or a backward direction of the electronic device; a first sensor disposed under the side surface area and configured to sense pressure applied to at least part of the side surface area; a second sensor configured to sense an input to the display, the input including a hovering input; motion sensor; and a processor operatively connected with the display, the first sensor, the second sensor, and the motion sensor, wherein the processor is configured to: identify (810, 820) the input to the display via the second sensor, in response to the input to the display, activate the first sensor and the motion sensor, after activation of the first sensor, identify a pressure of the input via the first sensor, if the pressure of the input is within a first specified range, determine whether the pressure is a valid pressure based on a variation in an acceleration of the display via the motion sensor, if the pressure of the input is valid pressure, determine between whether a right hand grip or a left hand grip resulted in the pressure and determine a first position (x', y', z') of at least one point of the side surface area corresponding to the sensed pressure, and display at least one graphic object on an area including the determined first position based on the determination of whether the pressure was caused by the right hand grip or the left hand grip, wherein the graphic object is a side key object comprising at least one of a power key object or a volume key object. a display including a front surface area and a side surface area disposed in at least one side of the front surface area, the front surface area facing a forward direction of the electronic device, and the side surface area facing a side direction, the forward direction and the side direction, or a backward direction of the electronic device; a first sensor disposed under the side surface area and configured to sense pressure applied to at least part of the side surface area; a second sensor configured to sense an input to the display, the input including a hovering input; motion sensor; and a processor operatively connected with the display, the first sensor, the second sensor, and the motion sensor, wherein the processor is configured to: identify (810, 820) the input to the display via the second sensor, in response to the input to the display, activate the first sensor and the motion sensor, after activation of the first sensor, identify a pressure of the input via the first sensor, if the pressure of the input is within a first specified range, determine whether the pressure is a valid pressure based on a variation in an acceleration of the display via the motion sensor, if the pressure of the input is valid pressure, determine between whether a right hand grip or a left hand grip resulted in the pressure and determine a first position (x', y', z') of at least one point of the side surface area corresponding to the sensed pressure, and display at least one graphic object on an area including the determined first position based on the determination of whether the pressure was caused by the right hand grip or the left hand grip, wherein the graphic object is a side key object comprising at least one of a power key object or a volume key object. identify (810, 820) the input to the display via the second sensor, in response to the input to the display, activate the first sensor and the motion sensor, after activation of the first sensor, identify a pressure of the input via the first sensor, if the pressure of the input is within a first specified range, determine whether the pressure is a valid pressure based on a variation in an acceleration of the display via the motion sensor, if the pressure of the input is valid pressure, determine between whether a right hand grip or a left hand grip resulted in the pressure and determine a first position (x', y', z') of at least one point of the side surface area corresponding to the sensed pressure, and display at least one graphic object on an area including the determined first position based on the determination of whether the pressure was caused by the right hand grip or the left hand grip, wherein the graphic object is a side key object comprising at least one of a power key object or a volume key object.