Method and apparatus for providing virtual keyboard

The virtual keyboard is provided a method and apparatus is disclosed. The present invention is arranged one of the plurality of key groups in the main touch area, and the key supply unit to the remaining group of keys arranged to collapse in the second touch region, displaying a virtual keyboard, a touch screen and the user input to detect a user input If the direction gesture, comprising: an input unit for calculating a direction of the direction of the gesture recognition, the key service unit to collapse when said user input direction gesture, a group of keys arranged on the main touch area to the secondary touch area arrangement, and arranged to expand the key groups corresponding to the direction of the direction gesture on the main touch area. the present invention has the effect of providing a virtual keyboard is suitable for the touch screen to provide convenience for the characters input by a user. Virtual keyboard