editor: Refactor input handling into handle_key() and handle_mouse().
editor: Refactor input handling into handle_key() and handle_mouse().

These are generic widget methods which can be overriden in subclasses to
achieve substantially diffrent behavior.

pfalcon/picotui