Moved deactivatePrevious(), activate(), and sanitizeInput() into methods
of the hotkeys class