Make arrow keys work in command mode

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>