added key command to take snapshots