OpenBCI - command after detecting alpha wave?

In what file and line do I insert code to perform a basic function when processing detects an alpha wave spike?

Let’s say I want to type the letter ‘a’ on the keyboard when an alpha wave spike is detected. How would this be achieved?

My setup:

SRB2: Reference on A1
BIAS: Bias on A2
7N: Red wire placed at O1

Im facing the same problem, Dan.

Which software are you using for the detection of alpha wave spikes?