Fix keybindings and clean up slide transition code