added key input getting class

threading is fun