Change method for defining new keyboards and retrieving keys.