add a command handler to handle key events better