Implemented Input class and created new way of handling events and inputs. Much cleaner.