Use named types for key_t, coord_t, button_t in CEvent and Key::