Added support for selecting autosuggestions with arrow keys.