add isAcceptedKey method