InputController optimized

fewer functions.