How can I set up multiple functions for a specific keybind depending on the situation?

like you asked for it…
link text