bind ket events to commands
Merge pull request #3327 from devoncarew/devoncarew_key_events

bind key events to commands