Added an input manager class to keep track of key presses