Used keyUp to avoid debounce. Fixed bad reference to old code