I already download the Linux Kernel v 4.12.7. I have to locate/find the files in Linux Kernel v 4.12.7 which are used to handle the keyboard operations.
Where these files are located and their names?
linux/drivers/input/keyboard contains driver source files for a number of keyboards. For example,
atkbd.c contains the driver for the classic AT and PS/2 keyboards. The most popular keyboard type today, the USB keyboard, is handled in user space by the libusb library; only the low level USB drivers are in the kernel.