key command fix and doc strings