Added a function to print keycodes