getCommandHistory
get key