Renames KeyEsc constant to KeyEscape.
Refactors some code in device.go.
Adds Device.KeyState() method, which returns the current,
global key/button state.
Adds examples/keys program.
It demonstrates how to read and interpret the global
key/button state from a device that supports it.