r46: Add CreateKey function (still working on it)