Added arrow key support.