Refactor key abbreviation feature