Fixed support for wide characters

Previously, toxic disregarded the possibility of wget_wch returning KEY_CODE_YES. Arguments were added to onKey functions to inform them if it was a function key being pressed (like delete or home), and were also modified accordingly.

I have not tested using non-widechars, but it should be fine.