Finally fixed - Tablet with pen in relative mode is now drawing correctly.

Now, pencil seems to be the unique open source drawing software
accepting tablet relative/mouse mode with pressure.
keypress improvements + code simplification + refactor
Merge pull request #180 from eVoLuTiVeMEDIA/master

some changes