In a window, how do i detect if an arrow key has been pressed?