only use keyboard button emulator if curses is available