only executing keystroke when midi is recognized