implement alt-a and ctrl-g keybindings