I don't like forever loops. Event-driven Arrow Key movement. Hold Arrow keys down for continuous movement. "keyboard character repeat delay" and "keyboard character repeat rate" are ignored! I've added an event-driven (the event being the start of movement) fps calculator. See inside.
Frame-by-frame FPS (measuring the time between frames and using that to calculate FPS) is very erratic. This method measure the total time of a period of continuous movement (to get an average) and uses that to calculate FPS. This eliminates the need for a forever loop to calculate FPS.