Separated out update key cap method for better extensibility.