Input manager, part 1

Remove redundancy.