simplify keys input