Added a keys function.