updating key commands