refactor(Key): make type public to simplify the code

type is final anyway so it could not be changed