Improved keyboard test

Now the keyboard test traverses a list of keys to be succesfully tested.