implementing ctrl-a