Create KeyStack

stack of keys, last in first out, kept in rank order