Keyboard callback or mouse callback

Hi all,
I move object with function:

import System.Drawing.Color
import Rhino
import rhinoscriptsyntax as rs

def move():
    rc, objref = Rhino.Input.RhinoGet.GetOneObject("object", False, Rhino.DocObjects.ObjectType.AnyObject)
    obj = objref.Object()
    objs = rs.coercebrep(objref)
    pt_start = Rhino.Geometry.VolumeMassProperties.Compute(objs).Centroid
    def GetPointDynamicDrawFunc(sender, args): 
        vect=args.CurrentPoint - pt_start        
    gp = Rhino.Input.Custom.GetPoint()
    gp.DynamicDraw += GetPointDynamicDrawFunc
    pt = gp.Point() 
    ve = pt - pt_start

if( __name__ == "__main__" ):

And I want to scale or rotate object by keyboard during move object.
Cant any one give some ideas to me ?

Sorry for my English skill.

Thinks all.

i very need it,too.
anybody can give some ideas? thanks

You can tell your GetPoint class that it can accept numbers

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.