add keyboard function

sprite moves when arrow key pressed