adapt new cube manipulation scripts. extract input code to single InputManager script.