Fixing crash when pressing an unbinded key (curses)