Added the basics of an input system along with some tests in GameManager.cpp

After a couple hours of debugging things not even related to input (they
just happend to come up while doin git) I have a basic setup for input
along with a serious but subtle bugfix.