Keyboard callback or mouse callback

You can tell your GetPoint class that it can accept numbers
http://4.rhino3d.com/5/rhinocommon/html/M_Rhino_Input_Custom_GetBaseClass_AcceptNumber.htm

Look at the result from the gp.Get() function call. If the result is a GetResult.Number, then call the Number function and see what the value is.