I am trying to capture linux keyboard/mouse input, and I am reading events from like /dev/input/event2. But it seems the input are sometimes directed to /dev/
Using sudo evtest is very helpful.
It will list all your input devices by name and corresponding event number. Then you can enter device event number of your interest and monitor its events.