Moved the global key callback function from the input handler to the application layer; replaced the application layer singleton pattern with a regular constructor and destructor;