Cleanups to keyboard callback stuff.
Fix shader preset save.

Have to take into consideration the preset type.