workaround chrome keydown event bug
fix mocks bug
add mouse state tests