Capture command event