Using hotkeys you can record a task without leaving your application.
You can configure the hotkey selection in Tools->Options->Hotkeys.
Note: To use a hotkey to record, Automation Anywhere application needs to be running in the system tray.