use Array#rand in all tests
restructure keymaps