Added key.Prev command

This adds a prev command which is needed for the merging of empty ranges.