Add createKey method