Abstract key hash code