fix key numlock bug
format code