Updated with new storage for inputs. Made KeyInputHandler a singleton.