Fixed setKey usage