fix UI arrow key handling (OSX only?)

curses.wrapper() calls keypad(1) on the window it creates, but windows
created with derwin() don’t inherit this setting, causing getch() to
return escape sequences for arrow keys.  (Possibly OSX specific.)