fixed a bug due to the key list and key map going out of synch. tests no longer flicky