Yes, both would be good. I was actually trying the `pl.waitforbuttonpress()` thing. Here is a small sample code

```python
import pylab as pl

timeout = 1
while True:

    if pl.waitforbuttonpress(timeout) is True:
        break
    else:
        print "continuing ..."
```
There are two problems here: 

> you cannot specify which key to stop on (this should be useful - e.g. one key to switch between training/test mode and another to exit)
> plotting window must be selected while pressing the key 

I am wondering if Psychopy has such methods, then it would make things simple for us if we intend to integrate feedback during real-time decoding anyway.