1. A user equipment comprising: a transceiver for communicating data; a memory for storing the data; a sensor for detecting unintended movement of the user equipment, the movement being caused by factors external to the user equipment; a graphical user interface with a virtual onscreen keyboard; and a processor for: evaluating the detected unintended movement; evaluating characters within a distance of a character entered by a user via the virtual onscreen keyboard during the detected unintended movement; selecting a replacement character from the evaluated characters; and replacing the entered character with the replacement character, wherein the distance is variable and based on a magnitude of the detected unintended movement or a number of a plurality of detected unintended movements.