keyboard_string - last 1024 characters typed by the player.
keyboard_string contains the last 1024 characters typed by the player. It should be noted that keyboard_string works exactly the same as any variable and can be set as well as read.
Example of Use
chatline = keyboard_string;
In this example, all text contained in keyboard_string will be written to chatline.
keyboard_string = "";
To reset keyboard_string, all you have to do is set it to an empty string.