created KeyBoard class to keep track of keys pressed