Refactoring of input and input bindings, CInput class