input class implement, register as frameListner

input class implement, register as frameListner