added globals and keybindings for animation