Added and documented key enum. Closes #268.