added Method to take command and empty ItemKey
added Method to take command and empty ItemKey