Implement boolean (yes/no or OK/Cancel, ...) input.