LiveTraffic offers "commands" for the most important menu items. These "commands" show up in X-Planes configuration screens for Joystick and Keyboard asignments. All of them are grouped under the top-level category "LiveTraffic".
Opens an aircraft information window
Aircraft Info... (Popped out)
Opens a popped out aircraft information window (separate OS-level window)
Aircraft Info shown
Hides/Shows all aircraft information windows, but does not close
Close All Windows
Closes all aircraft information windows
Starts/Stops display of live aircraft
TCAS Control: Tries to take control over AI aircraft
Toggle display of labels in current view
In X-Plane, the description is shown as the text to select in the configuration dialogs.
All commands are executed on key/button down event only, i.e. just once, no matter how long you press a key or button.
Go to X-Plane's settings for Keyboard. See here for X-Plane's manual on using the settings dialog. You find the LiveTraffic commands most easily when selecting Plugin Provided:
Assigned keyboard shortcuts appear on the menu next to the respective menu item, which helps remembering them.
Similarly, when assigning joystick buttons (see here for X-Plane manual) you can refer to the very same commands in the right hand command selection: