2. The electronic device of claim 1 , wherein the controller obtains information about a state of a hand by analyzing an image obtained through the camera and selects the typing mode based on the information about the state of the hand.
2. The electronic device of claim 1 , wherein the controller obtains information about a state of a hand by analyzing an image obtained through the camera and selects the typing mode based on the information about the state of the hand. 4. The electronic device of claim 2 , wherein: the information about the state of the hand comprises information about a position of the hand, and the controller selects the single-hand typing mode when a distance between a first hand and a second hand is greater than a predetermined distance and selects the double-hand typing mode when the distance between the first hand and the second hand is smaller than the predetermined distance.