added keyboard arrow key support