A virtual input device comprising: at least one sensor (110, 120); a projector; and a processor operatively coupled to the at least one sensor (100, 120) and the projector, wherein the processor is configured to: obtain at least one image through the at least one sensor (110, 120), identify a plurality of user hands included in the at least one image, determine a virtual input layout to be projected based on the identified plurality of user hands, project, through the projector, the determined virtual input layout on a user input plane; and detect, through the at least one sensor (110, 120), a user input on the projected virtual input layout, in response to identifying that the plurality of hands comprise either two right hands or two left hands, the processor is further configured to project, through the projector, a plurality of one-hand-support virtual input layouts (121A, 121B) as a two-hand-support virtual input layout, and in response to identifying that the plurality of hands comprise both a right hand and a left hand, the processor is configured to project, through the projector, a keyboard layout as the two-hand-support virtual input layout, and wherein the processor is further configured to: when the plurality of hands comprise both a right hand and a left hand, identify, through the at least one sensor (110, 120) a spacing between the right hand and the left hand, and in response to identifying that the spacing is greater than a specific spacing, project, through the projector, a split keyboard layout as the keyboard layout. at least one sensor (110, 120); a projector; and a processor operatively coupled to the at least one sensor (100, 120) and the projector, wherein the processor is configured to: obtain at least one image through the at least one sensor (110, 120), identify a plurality of user hands included in the at least one image, determine a virtual input layout to be projected based on the identified plurality of user hands, project, through the projector, the determined virtual input layout on a user input plane; and detect, through the at least one sensor (110, 120), a user input on the projected virtual input layout, in response to identifying that the plurality of hands comprise either two right hands or two left hands, the processor is further configured to project, through the projector, a plurality of one-hand-support virtual input layouts (121A, 121B) as a two-hand-support virtual input layout, and in response to identifying that the plurality of hands comprise both a right hand and a left hand, the processor is configured to project, through the projector, a keyboard layout as the two-hand-support virtual input layout, and wherein the processor is further configured to: when the plurality of hands comprise both a right hand and a left hand, identify, through the at least one sensor (110, 120) a spacing between the right hand and the left hand, and in response to identifying that the spacing is greater than a specific spacing, project, through the projector, a split keyboard layout as the keyboard layout. obtain at least one image through the at least one sensor (110, 120), identify a plurality of user hands included in the at least one image, determine a virtual input layout to be projected based on the identified plurality of user hands, project, through the projector, the determined virtual input layout on a user input plane; and detect, through the at least one sensor (110, 120), a user input on the projected virtual input layout, in response to identifying that the plurality of hands comprise either two right hands or two left hands, the processor is further configured to project, through the projector, a plurality of one-hand-support virtual input layouts (121A, 121B) as a two-hand-support virtual input layout, and in response to identifying that the plurality of hands comprise both a right hand and a left hand, the processor is configured to project, through the projector, a keyboard layout as the two-hand-support virtual input layout, and wherein the processor is further configured to: when the plurality of hands comprise both a right hand and a left hand, identify, through the at least one sensor (110, 120) a spacing between the right hand and the left hand, and in response to identifying that the spacing is greater than a specific spacing, project, through the projector, a split keyboard layout as the keyboard layout. when the plurality of hands comprise both a right hand and a left hand, identify, through the at least one sensor (110, 120) a spacing between the right hand and the left hand, and in response to identifying that the spacing is greater than a specific spacing, project, through the projector, a split keyboard layout as the keyboard layout.