Fix binding functions to keystrokes