Improved API by binding keycodes to a format.