Change keycode to int