renamed event to signal, added system events (e.g. key presses)