Parse options with getopt instead of strcmp
Specify keyboard device as an option
Print usec timestamps correctly

Don't drop zeros following the decimal point.
Use select() to wait for data

In preparation for handling multiple inputs.
Make EOF fatal
Use the file descriptors from select
Glob-expand --device
Use a glob as the default --device: *kbd*
Merge branch 'master' of https://github.com/chkno/keystroke-timestamps
Don't copy the device argument

http://www.gnu.org/software/libc/manual/html_node/Using-Getopt.html
says this is ok.