Update looptest.py

Adds a nonblocking keyboard grabber