Fix formatting and add arrow keys.