changed keybind functions to keybind code