updated problem 6 - keyboard