Bind key handlers to the dom element instead of to the window when