Added the getKeyId method to the UserInterface.