Got keyboard thread working and able to quit