bind key events to commands

bind key events to commands