Update machine keysCount after key association