An electronic device, comprising: a memory storing instructions; a display; a communication circuitry; and at least one processor operably coupled to the memory, the display, and the communication circuitry, the at least one processor configured to execute the stored instructions to cause the electronic device to: display a virtual reality image using the display; display a virtual keyboard including a plurality of keys indicating a plurality of characters, and a representation of an external electronic device superimposed on the virtual reality image, wherein the virtual keyboard is displayed in a virtual touch pad area of the representation, corresponding to a touch pad of the external electronic device; receive information regarding a first input; identify, using the received information, a key corresponding to the first input from among the plurality of keys; and display, in at least a portion (1015, 1715) of the virtual reality image, a character indicated by the identified key; characterized in that the first input is a first touch input on the touch pad, and the received information is transmitted from the external electronic device in response to detecting the first touch input on the touch pad; wherein the processor is further configured to execute the stored instructions to cause the electronic device to: receive movement information indicating a movement of the external electronic device, wherein the movement information is transmitted by the external electronic device when detecting movement of the external electronic device in the external electronic device; and move the representation of the external electronic device in the virtual reality image based on the received movement information. a memory storing instructions; a display; a communication circuitry; and at least one processor operably coupled to the memory, the display, and the communication circuitry, the at least one processor configured to execute the stored instructions to cause the electronic device to: display a virtual reality image using the display; display a virtual keyboard including a plurality of keys indicating a plurality of characters, and a representation of an external electronic device superimposed on the virtual reality image, wherein the virtual keyboard is displayed in a virtual touch pad area of the representation, corresponding to a touch pad of the external electronic device; receive information regarding a first input; identify, using the received information, a key corresponding to the first input from among the plurality of keys; and display, in at least a portion (1015, 1715) of the virtual reality image, a character indicated by the identified key; characterized in that the first input is a first touch input on the touch pad, and the received information is transmitted from the external electronic device in response to detecting the first touch input on the touch pad; display a virtual reality image using the display; display a virtual keyboard including a plurality of keys indicating a plurality of characters, and a representation of an external electronic device superimposed on the virtual reality image, wherein the virtual keyboard is displayed in a virtual touch pad area of the representation, corresponding to a touch pad of the external electronic device; receive information regarding a first input; identify, using the received information, a key corresponding to the first input from among the plurality of keys; and display, in at least a portion (1015, 1715) of the virtual reality image, a character indicated by the identified key; characterized in that the first input is a first touch input on the touch pad, and the received information is transmitted from the external electronic device in response to detecting the first touch input on the touch pad; wherein the processor is further configured to execute the stored instructions to cause the electronic device to: receive movement information indicating a movement of the external electronic device, wherein the movement information is transmitted by the external electronic device when detecting movement of the external electronic device in the external electronic device; and move the representation of the external electronic device in the virtual reality image based on the received movement information. receive movement information indicating a movement of the external electronic device, wherein the movement information is transmitted by the external electronic device when detecting movement of the external electronic device in the external electronic device; and move the representation of the external electronic device in the virtual reality image based on the received movement information.