Convert between keyboard keycodes and keynames and vice versa.