Some usability improvements and code cleaning

Hi @chchwy !

I decided to change the shortcut for the popup color palette to key (c), if you prefer another one (or if you want me to make it optional as the configurable shortcuts) please, let me know. 

A lot of thanks!