pull qt keys into module variables
add tests for Qt Key handling
simplify key getting logic
expose modifier key indexes
fix tests