first stab at abstracting keydispatching from an instrument from the core