Trying to do non-blocking fifo write
minor changes
Removed getting keypress in a separate thread
Simplified all code, and separated it in a motor control daemon and keyboard controller