Ok i would i set a floats value by pressing the num pad keys. What i mean is if i press
Input.GetKey(Kecode.Numpad1)
then i want the variable value to become 1 and then if i press 2 then 12 then on the third time they press it the system skips one so it gives us 12.then enter the last two numbers. Please someone help me thank you 
This is a bit different from what you asked for, but it will get you started…assuming you want to do it this way:
public class InputString: MonoBehaviour {
private float value = 0.0f;
private float mult = 10.0f;
private float keysPressed = 0;
void Start () {
RestartNumber ();
}
void Update() {
if (Input.GetKeyDown (KeyCode.Space))
RestartNumber ();
}
public void RestartNumber() {
value = 0;
mult = 10;
keysPressed = 0;
}
void OnGUI() {
Event e = Event.current;
if (e.isKey && e.type == EventType.KeyDown && keysPressed < 4) {
if (e.keyCode >= KeyCode.Keypad0 && e.keyCode <= KeyCode.Keypad9)
{
value = value + (float)(e.keyCode - KeyCode.Keypad0) * mult;
mult = mult / 10.0f;
keysPressed++;
if (keysPressed == 4)
;// Do whatever you wanted when you get 4 digits
}
}
// Display output for debugging
GUI.Label (new Rect(50,50,200,50), "value="+value);
}
}