basic handling of key events triggering digital writes.