check message keys
check message keys
check for command type