Create Input class to handle mouse and keyboard