Arrow keys move the selection only when the current tool/ink is about selection

This fix a problem where arrow keys cleared the selection content when they
were used with a non-selection tool.
Remove unused variables
Add experimental option to flash the selected layer when Up/down array keys are used (fix #111)