improved arrow key response

Note that the size of the frame is increased for testing on my computer,
which has too high a resolution to see small frames clearly.